Error when using "xlswrite"

Hello,
I have the following problem:
Every time I try to write some variables into an excel file I get this error:
Error using xlswrite (line 220)
Error: The server threw an exception.
Can anybody help?
Thank you!

4 件のコメント

Image Analyst
Image Analyst 2016 年 3 月 31 日
Exactly what are you trying to write?
Leo Müller
Leo Müller 2016 年 3 月 31 日
let's say I have a variable a with an array in it. How do I export this array as an excel file?
Thank you!
Ugue Halden
Ugue Halden 2016 年 3 月 31 日
I think the problem can be within xlswrite function, maybe it is not designed for writing exceptaniol arrays into excel format ( For example maybe it is not suitable for writing Categorical Arrays )
This is the only logical idea which popped into my mind with given information by you.
Walter Roberson
Walter Roberson 2016 年 3 月 31 日
How large is the data, and which file extension did you use? .xls ? .xlsx ?

サインインしてコメントする。

回答 (2 件)

Leo Müller
Leo Müller 2016 年 4 月 1 日

0 投票

I just found out, that this error does not occur if the file already exists ....
Thank you :)

1 件のコメント

Image Analyst
Image Analyst 2016 年 4 月 1 日
It should not occur if there is no file existing yet. It should work.
Alternatively, have you tried writetable()?

サインインしてコメントする。

vincent becker
vincent becker 2016 年 7 月 18 日

0 投票

Hi forum,
I've got the same error. How can I print the error message following the doc : [status message] = xlswrite(...);
How can I display 'message' say with fprintf?
Thought of a file path too long but isn't
Thanks Vincent

質問済み:

2016 年 3 月 31 日

回答済み:

2016 年 7 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by