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

1 visualización (últimos 30 días)
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

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 27 de Oct. de 2022
Editada: KALYAN ACHARJYA el 27 de Oct. de 2022
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 comentarios
Amanda
Amanda el 27 de Oct. de 2022
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 el 27 de Oct. de 2022
Ensure that file in current working directory & check the file name again.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by