Is there a way to disable all warning messages from command window

63 views (last 30 days)
Chris
Chris on 27 Aug 2011
Commented: Walter Roberson on 15 May 2019
Warning: Test statistic #1 above tabulated critical values

Accepted Answer

Lucas García
Lucas García on 27 Aug 2011
warning off;
Although you might just want to disable the warning that is bothering you:
[msg, id] = lastwarn;
warning('off', id)
  5 Comments

Sign in to comment.

More Answers (1)

zzzhhh
zzzhhh on 16 Mar 2016
In case you want to suppress warnings from all workers running in parallel (the above answers do not work in this case), use:
pctRunOnAll warning off
  1 Comment
Walter Roberson
Walter Roberson on 15 May 2019
Note that the size of the "display" for parpool members is not generally the size of the display of the client; a quick test showed me that workers appear to be assigned virtual 1024 x 768 displays. Thus one might need to consider different strategies for imshow complaining about image being larger than window for workers than you would for the client. (The workers have no access to the client's display; the workers are working in a memory buffer of some kind.)

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!

Translated by