Getting error from xlsread

조회 수: 29 (최근 30일)
Armin Sadeghian
Armin Sadeghian 2016년 2월 17일
댓글: Kashif Mehmood 2019년 5월 25일
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일
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일
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
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.

댓글을 달려면 로그인하십시오.


vcmorini
vcmorini 2017년 5월 16일

Seth Wright
Seth Wright 2018년 10월 22일
Saving it as a csv file fixed it

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by