Problem to import data from Excel to Matlab
Mostrar comentarios más antiguos
Hello, I've a problem to import data from excel file to Matlab. I'm using xlsread function in the following way:
[num,text]=xlsread('myxlsfile.xls')
then I receive this warning message:
"Warning: XLS File contains unrecognized string header - skipping remaining text - (1027:0x20 57307)"
and the 'text' matrix result truncate. I've tried to copy and paste the data in an other xls file, but the problem persist. My xls file is approximately 20MB.
Is it too large? Could anyone help me?
Thank you
Maddalena
6 comentarios
Kaustubha Govind
el 10 de Jun. de 2011
What versions of MATLAB and Excel are you using?
Walter Roberson
el 10 de Jun. de 2011
Also, which operating system? Some xlsread() features are only supported on Windows systems that have Excel installed.
Maddalena Mandarà
el 11 de Jun. de 2011
Walter Roberson
el 11 de Jun. de 2011
Does the same thing happen if you tell it which cells to read?
Is it a text file or a binary file? If it is a binary file, could you export it as a text file?
Image Analyst
el 12 de Jun. de 2011
Well there's your problem - you installed Excel 2011 on your Windows 7 computer. I didn't even know you could do that since that's a Apple Macintosh product. The latest Excel for Windows is 2010, while for the Macintosh it's 2011. Try installing Office 2010 for Windows instead. ;-)
Can you open that file in any version of Excel on any platform? It seems if it's a corrupt workbook with a corrupt header that even Excel wouldn't open it.
Maddalena Mandarà
el 12 de Jun. de 2011
Respuesta aceptada
Más respuestas (2)
Guido Travaglini
el 12 de Jun. de 2011
0 votos
Make sure the path shown in the "Current Folder" window is the same where your XLS file resides.
1 comentario
Maddalena Mandarà
el 12 de Jun. de 2011
Kokalz
el 16 de Jul. de 2012
0 votos
Could you give a full discription on the problem solving steps that your performed? Thank you!
2 comentarios
Maddalena Mandarà
el 16 de Jul. de 2012
Kokalz
el 16 de Jul. de 2012
How did you find out you were using the virtualized version of Excel?
Categorías
Más información sobre Use COM Objects in MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!