Has xlsread been made compatible on Mac yet?

1 view (last 30 days)
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 Comments
Mack Gardner-Morse
Mack Gardner-Morse on 28 Feb 2020
Also will not read sheet names. Only the sheet number.
Michel Georges Decker
Michel Georges Decker on 17 Dec 2020
In 2020b it reads the sheet names completely fine. (also works with Apple Silicon M1)

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 23 May 2017
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 Comment
POV G
POV G on 31 Mar 2018
"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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!