Matlab:Importing Data
Importing text filesStep1:  Save data in a text file.
Importing text filesStep2:  Open the ‘File -> Import data’ window in MATLAB and select your file.
Importing text filesStep2:  Open the ‘File -> Import data’ window in MATLAB and select your file.
Importing text filesStep3:  Select values in the import data wizard
Importing text filesStep4:  Finalize import.
Importing text filesNow look at your workspace, here’s the data we just imported!
Importing dataMATLAB provides the following methods of importing data:Enter the data at the MATLAB command prompt.
Create data in an M-file.

Matlab Importing Data