Hello,
I am trying to run a code which used to work perfectly using previous versions of Matlab. Now after upgrading to version 2015b I receive this error at line 251 of xlsread.m
Anybody knows anyway to fix this?
thank you.

2 件のコメント

ravi
ravi 2016 年 4 月 11 日
I was encountering the same problem since long. I tried saving the excel file in 97-2003 format. And then xlsread worked well :-)
Kashif Mehmood
Kashif Mehmood 2019 年 5 月 25 日
i tried this but still have problem

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

 採用された回答

xianjie Zhou
xianjie Zhou 2016 年 2 月 17 日

1 投票

What error message you got? I have the same problem, it saids: Error: The server threw an exception. But I run for second time it goes. I believe there are some solutions for that: http://www.mathworks.com/matlabcentral/answers/92603-why-does-xlswrite-fail-with-error-the-server-threw-an-exception-in-matlab-7-7-r2008b

1 件のコメント

Armin Sadeghian
Armin Sadeghian 2016 年 2 月 17 日
When I check xlsread.m at line 251 I see the same error "threw exception".I reinstalled Matlab, but it did not solve my problem.

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

その他の回答 (3 件)

XM Liu
XM Liu 2016 年 11 月 17 日

9 投票

1- open the excel> file, >option, >add in, manage then select COM ADD IN, and clear everything (unchecked). everything should be cleared (unchecked). 2- restart the PC, and open the matlab. 3- perform xlsread command.
PS. For those people who use foxit pdf reader, it is potential to face this problem, so follow mentioned order.

4 件のコメント

Henrik Persson
Henrik Persson 2016 年 11 月 25 日
Thank you XM Liu :) I had this issue and I was using foxit excel plugin. Disabling it and restarting solved the issue.
Antoine Mailhot
Antoine Mailhot 2017 年 5 月 15 日
Thanks a lot! It solved my problem. It was actually the Foxit Reader COM ADD IN.
An
An 2018 年 11 月 12 日
Also worked for me. Such a weird bug with Foxit... Thanks XM Liu!
Atsushi
Atsushi 2019 年 4 月 30 日
Thanks Liu. It also worked for me with R2018a and Excel 2016.

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

Seth Wright
Seth Wright 2018 年 10 月 22 日

0 投票

Saving it as a csv file fixed it

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by