How do I read a Microsoft Excel worksheet into MATLAB as a table? I know how to read it as csv by
Table=readtable('filename.csv')
but I want to read as xls

Antworten (1)

Ameer Hamza
Ameer Hamza am 25 Okt. 2020

0 Stimmen

readtable(): https://www.mathworks.com/help/matlab/ref/readtable.html also works for xls file.

1 Kommentar

dpb
dpb am 25 Okt. 2020
And if the Excel file is complex, better results will usually be had by using detectImportOptions first; simple files are generally brought in as desired.

Melden Sie sich an, um zu kommentieren.

Tags

Gefragt:

am 25 Okt. 2020

Kommentiert:

dpb
am 25 Okt. 2020

Community Treasure Hunt

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

Start Hunting!

Translated by