Error using xlswrite (line 220) Error: The server threw an exception.

1 view (last 30 days)
Dear MATLAB Experts, Can you please help to resolve this issue??
Error using xlswrite (line 220) Error: The server threw an exception.
Code is attached.
Thanks in advance.

Answers (1)

Moritz
Moritz on 2 Feb 2018
Edited: Moritz on 2 Feb 2018
First of all are you aware you are constantly overwriting your excel file in your for loop?
To answer your question however please refer back to the official MATLAB answer: https://es.mathworks.com/matlabcentral/answers/92603-why-does-xlswrite-fail-with-error-the-server-threw-an-exception-in-matlab-7-7-r2008b
In short: This is most likely caused by some Excel Add-Ins. Please disable them and try again. Hope this helps!

Community Treasure Hunt

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

Start Hunting!