Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
what a sign for this error ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello guys
does anyone know which part is wrong?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/194698/image.jpeg)
1 Kommentar
Antworten (1)
Greg
am 29 Aug. 2018
There's not a lot to go on, but my only guess is you don't have MS Office Excel installed on a Windows machine. Without Excel installed, xlsread operates in 'basic' mode, which does not support the numeric worksheet input. Considering no sheet number input defaults to the first worksheet, simply try:
xlsread(fileread);
3 Kommentare
Dennis
am 30 Aug. 2018
Can you elaborate when the error occurs and on which files?
Also xlsread will not work if the file is opened in Excel.
Greg
am 30 Aug. 2018
Bearbeitet: Greg
am 30 Aug. 2018
"Also xlsread will not work if the file is opened in Excel."
I just tested that explicitly this morning and it does in fact work. At least with whatever edition of Excel I have (2013? maybe), and R2017b on Win10.
I also checked having a file with no worksheets, but Excel won't let you do that. Maybe if some other application created a .xls file with no sheets...
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!