Remove warning message
9 次查看(过去 30 天)
显示 更早的评论
Dear Matlab folks,
When I save data from matlab to new excel spreadsheet, I get the following message:
Warning: Added specified worksheet.
In xlswrite>activate_sheet at 265
In xlswrite at 221
In export_2_excel at 94
In Model_Main at 409
Is there a way to hide this message? Because now it's appearing on the command window every time a new sheet is created and is very annoying.
Regards,
Pedro Cavaco
0 个评论
采纳的回答
Wayne King
2011-9-27
Yes, you can use.
warning('OFF', 'MSGID')
Use lastwarn() to get the message ID for the warning you want to turn off.
3 个评论
Wayne King
2011-9-27
No, I mean right after you get that warning in the command window, enter
[lastmsg,lastid] = lastwarn;
Then use the lastid (a character array)
warning('off',lastid)
Of course you can always do
warning('off','whateverthesringisinlastid')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Export to MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!