title: Silencing warning messages in MATLAB
body: <p>Sometimes, depending on the size of an image, when I call <a href="http://www.mathworks.com/help/techdoc/ref/avifile.addframe.html" rel="noreferrer"><code>addframe</code></a> in MATLAB to add 2D images to a video, I get the following warning message.</p>
  
  <blockquote>
    <p>Warning: The frame height has been padded to be a multiple of four as
    required by the specified codec. 
    In avifile.addframe at 127</p>
  </blockquote>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>Are there any ways of <strong>silencing specific warnings</strong> like this? If so, is it possible to <strong>capture a warning</strong> in a variable in my code (i.e. similar to the try &amp; catch exception mechanism) rather than having MATLAB print this warning in the command window?</p></li>
  <li><p>If the above is not possible. Is it there a way to <strong>silence all warnings</strong> in MATLAB <strong>temporarily</strong>?</p></li>
  </ol>