MATLAB: Remove warning message

excelexport dataimporting excel data

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

Best Answer

Yes, you can use.
warning('OFF', 'MSGID')
Use lastwarn() to get the message ID for the warning you want to turn off.