How to read numbers spreadsheets from Mac using Matlab

조회 수: 24 (최근 30일)
Stelios Fanourakis
Stelios Fanourakis 2019년 10월 30일
답변: Cris LaPierre 2021년 1월 7일
Hi
I am using the xlsread command to read numbers spreadsheets in Matlab but I get the error that cannot find the file. The file is in the folder but cannot find it. Why? I don't get any error with the xlsread command. Can Matlab see number spreadsheets? It has been saved as the one the Numbers app of Mac exports
  댓글 수: 4
Guillaume
Guillaume 2020년 1월 15일
In any case, I don't think there's any function in matlab that can read numbers files, which are neither text files nor excel files. If the file has been exported as an excel file then yes it could be read with xlsread or better readtable or readmatrix but the file is no longer a numbers file.
Of course, csvread, dlmread and co. have never been able to read excel files. Only text files.
Walter Roberson
Walter Roberson 2020년 1월 15일
If the file is xls or xlsx then unless Windows with Excel is being used, it may be necessary to use readtable.

댓글을 달려면 로그인하십시오.

답변 (2개)

Jyotsna Talluri
Jyotsna Talluri 2019년 11월 4일
'xlsread' is not recommended in the latest versions .Instead try using 'readtable'

Cris LaPierre
Cris LaPierre 2021년 1월 7일
MATLAB does not appear to be able to read these files directly. The recommended workaround is to export the file as a *.xlsx or *.csv file, then import using readtable. Other methods for importing can be found here.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by