How to convert xls to mat file ?
이전 댓글 표시
I want to convert xls file to mat file
댓글 수: 4
Kan-Hua
2014년 3월 4일
To convert a xls file to a mat file, you need to decide the data structure. What Matlab data structure do you want to use for storing your xls file? numerical array? cell array? or table?
Surendar Kumar Kodali
2019년 12월 18일
need the table structure .
Walter Roberson
2019년 12월 18일
Use readtable() to get a table structure.
답변 (3개)
ES
2014년 3월 4일
%get the values in the Excel using xlsread.
[num,txt,raw] = xlsread(filename,sheet,xlRange);
%combine data as you want:
AllData={txt;num};%as you want
%save in mat file
save(matfileName,'AllData');%In your matfile name
댓글 수: 3
deep
2015년 3월 13일
This helped me :)
Andreas Goser
2015년 3월 16일
Then vote it up :-)
Tuffahatul Ummah
2016년 9월 21일
AllData={txt;num};%as you want what txt and num mean? i don't have clue for what must I fill it
Andreas Goser
2014년 3월 4일
0 개 추천
As of the complexity of what can be in an XLS file, the way to go is to import with XLSREAD, probably postprocess and then write the MAT file with SAVE.
댓글 수: 1
aman slamaa
2017년 4월 20일
how write Andreas? please type your steps
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!