how will we convert xls files into mat files please help me
32 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
varunesh
am 4 Sep. 2013
Kommentiert: arun anoop m
am 27 Jul. 2020
how will we convert xls files into mat files? please help me
1 Kommentar
Image Analyst
am 20 Apr. 2014
Original question in case varunesh deletes it:
how will we convert xls files into mat files? please help me
Akzeptierte Antwort
kei hin
am 4 Sep. 2013
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
1 Kommentar
arun anoop m
am 27 Jul. 2020
No sir , it wont work. Whichever XLS file u convert,
just try
whos -file filename.mat
you can see both filename.xls and filename.mat not same.
Better goto MATLAB. Go to workspace. Click on that . RIght corner down arrow, then click 'new'. And fill features values. And save workspace. It give filename.mat file.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!