MATLAB: How to take input as excel file from user in matlab?

data importexcelimportimporting excel data

I want to take excel file from user by using open dialog box.How to take it??

Best Answer

[filename, pathname] = uigetfile({'*.xls', '*.xlsx'}, 'Pick an excel file');
fullname = fullfile(pathname, filename);
[num, txt, raw] = xlsread(fullname);
Related Question