Error using xlswrite (line 224)
33 次查看(过去 30 天)
显示 更早的评论
I always get this error in different iteration values, sometimes in 43rd iteration, sometimes in 1251, but I can't figure out why.
Error using xlswrite (line 224)
Invoke Error, Dispatch Exception:
Source: Microsoft Excel
Description: Office has detected a problem with this file. To help protect your computer this file cannot be opened.
Help File: xlmain11.chm
Help Context ID: 0
Error in RelaySimulationWithChangingPower (line 66)
xlswrite('RelayDataTMS1',FLC1,1,['A' num2str(x)]);
0 个评论
回答(1 个)
Image Analyst
2021-6-17
If you're calling xlswrite 1251 times, you're not doing it right -- that will take forever. It's better to use ActiveX. See attached demos.
It could be it's not done closing it from the prior operation. Or else you manually went to it and started doing something in Excel and it got confused. Or maybe there is something wrong with your x value or FLC1 array.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!