Trouble with using xlswrite [Error using xlswrite (line 225)]

Dear all,
I am using Matlab 2011b in Window 10 and recently I have not been able to export data to excel file by using XLSWRITE.
The following error was shown in my Command window when I start this script:
%%%%%%%%%%%%%
t=[1 2 3 4 5 6];
xlswrite('test.xls',t,1);
>>>Error using xlswrite (line 225)
>>>Error: The server threw an exception.
%%%%%%%%%%%%%%%%%%%%%%%%
I have checked Matlab-Q&A history for this trouble.
There is a suggestion that I should deactivate some Add-in of Excel regarding Bluetooth.
However, I can't find that add-in in my Excel. I think it was not activated.
I am looking forward to receiving more suggestions to solve this trouble from you.
Best regards,

Answers (1)

Jan
Jan on 7 Mar 2016
Edited: Jan on 7 Mar 2016
Set a breakpoint in the failing line. When Matlab stops, try to find out more details about the error message.
Are you able to create the file in Excel? How did you activate the MS Office? Did you try to create the file running Matlab once as admin?

1 Comment

Thank you for your answer and your additional comments.
In fact, I have been using Matlab and MS Office together with WIN 10 as administrator for more than half year.
They are working quite well.
But a week ago, the error appeared when I use XLSWRITE to export my data from Matlab to Excel.
I think some update of Window may cause this, but I cant figure out which one.
I did try to remove all add-in in MS Office, but the same situation still occurs.
Therefore, I am looking forward to more comments from some Matlab experts.

Sign in to comment.

Asked:

on 7 Mar 2016

Commented:

on 7 Mar 2016

Community Treasure Hunt

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

Start Hunting!