"Jessica " <jyorzinski@ucdavis.edu> wrote in message
news:km8lmp$g0l$1@newscl01ah.mathworks.com...
> "Steven_Lord" <slord@mathworks.com> wrote in message
> <km8cj4$egm$1@newscl01ah.mathworks.com>...
>>
>>
>> "Jessica " <jyorzinski@ucdavis.edu> wrote in message
>> news:km75p0$1l5$1@newscl01ah.mathworks.com...
>> > I am trying to import a xlsx file into R2010a. However, I get the
>> > error:
>> >
>> > [A,B,C]=xlsread('04-11-13.xlsx');
>> >
>> > File is not in recognized format.
>> >
>> > Any suggestions on how to get around this?
>>
>> The Release Notes for release R2012a include this item:
>>
>> "The xlsread function now reads data from XLSX files on all platforms,
>> including support for specifying the range and worksheet number.
>> Previously, this functionality was available only on Microsoft Windows
>> systems with Excel software."
>>
>> If you are trying to read in your xlsx file on a non-Windows system, or
>> on a Windows system that did not have a version of Microsoft Excel that
>> can read XLSX files installed, it will not work because your release of
>> MATLAB predates that functionality.
>>
>> I can think of three potential solutions:
>>
>> 1) Open the file in a version of Microsoft Excel that supports XLSX files
>> and save it in the XLS format.
>> 2) Install a version of Microsoft Excel that supports XLSX files on the
>> machine where you're running MATLAB.
>> 3) Upgrade to release R2012a or later.
>>
>> --
>> Steve Lord
>> slord@mathworks.com
>> To contact Technical Support use the Contact Us link on
>> http://www.mathworks.com
>
>
> I am running the software on a Mac. I can't save as xls because it
> truncates the file at about 16000 rows. My machine currently has excel and
> it saves/opens xlsx files. Thus, option 2 seems best except that I already
> have this setup and the file doesn't open in matlab.
If you were running on a Windows machine, option 2 would be viable. [MATLAB
uses COM to connect to Microsoft Excel in that scenario, but Mac doesn't
have COM.]
Because of what you posted, I think your options are:
3) Upgrade to release R2012a or later.
4) Split the file into a number of XLS files with 16000 rows each.
5) Convert to a different file format entirely (CSV, for example.)
--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com