Trouble with using xlswrite [Error using xlswrite (line 225)]
Show older comments
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,
1 Comment
Walter Roberson
on 7 Mar 2016
MATLAB R2011b is much too early to be supported on Windows 10.
Answers (1)
I assume you've considered this already: http://www.mathworks.com/matlabcentral/answers/92603-why-does-xlswrite-fail-with-error-the-server-threw-an-exception-in-matlab-7-7-r2008b
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
Hoang Tuan Tong
on 7 Mar 2016
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!