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.

카테고리

Help CenterFile Exchange에서 Large 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