필터 지우기
필터 지우기

Remove warning message

조회 수: 12 (최근 30일)
Pedro Cavaco
Pedro Cavaco 2011년 9월 27일
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

채택된 답변

Wayne King
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
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')
Pedro Cavaco
Pedro Cavaco 2011년 9월 27일
Thanks a lot Wayne.
Works great!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by