Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: Simple but stunning xlswrite problem.
Posted:
Dec 5, 2012 12:55 PM
|
|
"Paul " <pecmertens@gmail.com> wrote in message news:k9nj38$k0o$1@newscl01ah.mathworks.com... > I get an error when trying to write very basic arrays using xlswrite. > > This works: > a = cell(5); > a(1:25) = 1;
This line should have thrown an error assuming you're using the built-in CELL function.
> xlswrite('test', a) > > THIS does not work: > a = cell(5) > a(1:25) = 1;
Ditto.
> a(1,5) ={'a'}; > xlswrite('test',a); > > I get the following error: > > ??? Error using ==> xlswrite at 180 > An error occurred on data export in CSV format. > Error using ==> <a href="error:C: > > Does anyone have any idea why this could be happening?
What version of MATLAB are you using?
Do you have Microsoft Excel installed on your machine? If so, what version?
Have you tried explicitly specifying that the file you're trying to create should have the .xls extension?
-- Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com
|
|
|
|