Has xlsread been made compatible on Mac yet?

I saw in a previously asked question from a few years ago that the function xlsread() does not work on Mac. See http://www.mathworks.com/support/solutions/en/data/1-2SJUON/index.html. Since then, has the feature been added or does it still revert to csvread()? I need to read in an excel file that has numeric and text values, and csvread won't suffice for that job.

2 件のコメント

Mack Gardner-Morse
Mack Gardner-Morse 2020 年 2 月 28 日
Also will not read sheet names. Only the sheet number.
Michel Georges Decker
Michel Georges Decker 2020 年 12 月 17 日
In 2020b it reads the sheet names completely fine. (also works with Apple Silicon M1)

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

 採用された回答

Walter Roberson
Walter Roberson 2017 年 5 月 23 日

0 投票

Support for .xls files was added a couple of years ago, but the exact version number does not come to mind.
If you are using R2013b or later, especially R2014b or later, then I suggest you consider using readtable()
Documentation for xlsread('basic')
basic mode is the default for computers without Excel for Windows. In basic mode, xlsread:
  • Reads XLS, XLSX, XLSM, XLTX, and XLTM files only.
  • Does not support an xlRange input when reading XLS files. In this case, use '' in place of xlRange.
  • Does not support function handle inputs.
  • Imports all dates as Excel serial date numbers. Excel serial date numbers use a different reference date than MATLAB® date numbers.

1 件のコメント

POV G
POV G 2018 年 3 月 31 日
"Imports all dates as Excel serial date numbers. Excel serial date numbers use a different reference date than MATLAB® date numbers." - so how to overcome this problem when importing excel files with dates and numbers in one?
Thank you in advance Paul

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by