Getting error from xlsread

27 visualizaciones (últimos 30 días)
Armin Sadeghian
Armin Sadeghian el 17 de Feb. de 2016
Comentada: Kashif Mehmood el 25 de Mayo de 2019
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 comentarios
ravi
ravi el 11 de Abr. de 2016
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 el 25 de Mayo de 2019
i tried this but still have problem

Iniciar sesión para comentar.

Respuesta aceptada

xianjie Zhou
xianjie Zhou el 17 de Feb. de 2016
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 comentario
Armin Sadeghian
Armin Sadeghian el 17 de Feb. de 2016
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.

Iniciar sesión para comentar.

Más respuestas (3)

XM Liu
XM Liu el 17 de Nov. de 2016
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 comentarios
An
An el 12 de Nov. de 2018
Also worked for me. Such a weird bug with Foxit... Thanks XM Liu!
Atsushi
Atsushi el 30 de Abr. de 2019
Thanks Liu. It also worked for me with R2018a and Excel 2016.

Iniciar sesión para comentar.


vcmorini
vcmorini el 16 de Mayo de 2017

Seth Wright
Seth Wright el 22 de Oct. de 2018
Saving it as a csv file fixed it

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by