Question: how to import data from file in matlab?
Answer: MATLAB® Toolstrip: On the Home tab, in the Variable section, click Import Data.
MATLAB command prompt: Enter uiimport( filename ) , where filename is a character vector specifying the name of a text or spreadsheet file.