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')

请先登录,再进行评论。

更多回答(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