Has xlsread been made compatible on Mac yet?
1 view (last 30 days)
Show older comments
Paxton Carnes
on 23 May 2017
Commented: Michel Georges Decker
on 17 Dec 2020
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
Michel Georges Decker
on 17 Dec 2020
In 2020b it reads the sheet names completely fine. (also works with Apple Silicon M1)
Accepted Answer
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()
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
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
More Answers (0)
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!