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

1 回表示 (過去 30 日間)
Amanda
Amanda 2022 年 10 月 28 日
コメント済み: Cris LaPierre 2022 年 10 月 28 日
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

回答 (1 件)

Cris LaPierre
Cris LaPierre 2022 年 10 月 28 日
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 件のコメント
Amanda
Amanda 2022 年 10 月 28 日
i am suppose to use the xlsread function
Cris LaPierre
Cris LaPierre 2022 年 10 月 28 日

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by