필터 지우기
필터 지우기

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

조회 수: 8 (최근 30일)
varunesh
varunesh 2013년 9월 4일
댓글: arun anoop m 2020년 7월 27일
how will we convert xls files into mat files? please help me
  댓글 수: 1
Image Analyst
Image Analyst 2014년 4월 20일
Original question in case varunesh deletes it:
how will we convert xls files into mat files? please help me

댓글을 달려면 로그인하십시오.

채택된 답변

kei hin
kei hin 2013년 9월 4일
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
arun anoop m
arun anoop m 2020년 7월 27일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by