Info
この質問は閉じられています。 編集または回答するには再度開いてください。
xlsread returns error some times
1 回表示 (過去 30 日間)
古いコメントを表示
Hi,
I have a little Problem with xlsread. When I use xlsread to import data, I sometimes get the error message:
Error using xlsread (line 247)
File C:\Users\...\UK.xls not in Microsoft Excel Format.
The file exists and the file name is correct. When I run the code a couple of times, it usually works. So the error occurs only some times. Any suggestions how to fix this?
Thanks in advance!
2 件のコメント
Image Analyst
2015 年 3 月 12 日
Does it open using Excel? Can you attach the workbook here so someone can try it? Can you attach your script? Can we just put xlsread() in a for loop and observe the problem on some iterations?
回答 (1 件)
Christian F.
2015 年 3 月 12 日
編集済み: Christian F.
2015 年 3 月 12 日
2 件のコメント
BSantos
2015 年 3 月 12 日
One thing I notice is that you assign lastRow as T but not within commas; lastRow = T -> lastRow = 'T'
Plus, you do num2str(lastRow), but lastRow is not a number on th ecode you just shared.
Other than that, I don't see why xlsread does not work....
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!