MATLAB: How will we convert xls files into mat files please help me

xlsread

how will we convert xls files into mat files? please help me

Best Answer

Try this
file = dir('*.xl*'); %dir excel
filename = file.name; %filename_excel
excel_path = [pwd, '\', filename]; %get the path of the excel
[ndata, headertext] = xlsread(excel_path); %read the data from the excel
save('a.mat','ndata'); %save to a.mat