How do you write a function that imports data from an .xlsx file and saves the data as a .mat?

조회 수: 1 (최근 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

채택된 답변

KALYAN ACHARJYA
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
Amanda
Amanda 2022년 10월 27일
I tried this and i keep getting this error
Error using readmatrix
Unable to find or open 'markers_trial001.xlsx'. Check the path and filename or file permissions.
Error in importantaMarkerDataFromXls (line 1)
data_excel=readmatrix('markers_trial001.xlsx')
KALYAN ACHARJYA
KALYAN ACHARJYA 2022년 10월 27일
Ensure that file in current working directory & check the file name again.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by