MATLAB: Read XLSX file on a Mac with R2012a doesn’t work

macMATLABxlsread

Hi,
In the release notes of R2012a, it is said that Matlab can now read XLSX files on any platform. I'm working on Mac OS X Lion (10.7.3) with R2012a and MS Office 2011. When I save a file with Excel as an XLSX file, the matlab function xlsfinfo can't read it. But If I save it as an XLS file, it's Ok. The problem is that I want to use xlsread with specifying range to import. So according to the Help article on this function, I can't use the basic mode and thus, I have to use an XLSX file. But it doesn't work. Any help would be appreciated.

Best Answer

I'm not sure that the basic mode is specific to XLS or XLSX files. AFAIK, on Mac/Linux platforms, XLSREAD only works in basic mode. The reason is because in non-basic mode, XLSREAD needs to start Excel as a COM Server, which is a Windows-only technology.