How to write a function that imports data from an xlsx file

1 vue (au cours des 30 derniers jours)
Amanda
Amanda le 28 Oct 2022
Commenté : Cris LaPierre le 28 Oct 2022
I need to write a function that imports an .xlsx file and saves the data as .mat file. I need to call this from the command line. I am so confused on how to do this

Réponses (1)

Cris LaPierre
Cris LaPierre le 28 Oct 2022
Why write your own function? In MATLAB, you would use readmatrix or readtable.
Once your data is loaded, use the save function to save your variable(s) to a mat file.
  2 commentaires
Amanda
Amanda le 28 Oct 2022
i am suppose to use the xlsread function

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by