Using the command warning, you can disable all warnings or specific warnings by ID:
WARNING('OFF', 'MSGID')and WARNING('ON', 'MSGID')turn off and on the display of any warning marked with the message identifier MSGID. (Use the following LASTWARNto identify a warning identifier or use a function WARNING VERBOSE.) warningIs not case sensitive when matching message identifiers.
For more help on the command, warningtype help warningMATLAB at the command prompt.