MATLAB: Suppress Warning Messages

command lineMATLABrapid acceleratorsimulink

Is there a way to suppress the "Warning: Visualization blocks are not updated during command line simulation in rapid accelerator mode." messages?
The visualisation blocks are useful when running my model from Simulink so I don not want to delete them but I don't wand to receive the errors when running from the command line.
Thanks
Mike

Best Answer

You can use
warning('off','message_id')
to turn off a specific warning. You can use lastwarn to find out the message_id corresponds to the visualization block warning. Details can be found in the doc
doc warning
HTH