How do you write a function that imports data from an .xlsx file and saves the data as a .mat?
조회 수: 4(최근 30일)
표시 이전 댓글
I need to write a function that imports data from an .xlsx file and saves the data as a .mat using xlsread. I'm just not even sure where to start with this one
댓글 수: 0
채택된 답변
KALYAN ACHARJYA
2022년 10월 27일
편집: KALYAN ACHARJYA
2022년 10월 27일
Load the data using readmatrix function
data_excel=readmatrix('file_name.xlsx') ; % Check the file format name
Save the file in mat format
Hope it helps!
댓글 수: 2
KALYAN ACHARJYA
2022년 10월 27일
Ensure that file in current working directory & check the file name again.
추가 답변(0개)
참고 항목
범주
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!