Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6145731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:50:19+00:00 2026-05-23T18:50:19+00:00

Sometimes, depending on the size of an image, when I call addframe in MATLAB

  • 0

Sometimes, depending on the size of an image, when I call addframe in MATLAB to add 2D images to a video, I get the following warning message.

Warning: The frame height has been padded to be a multiple of four as
required by the specified codec.
In avifile.addframe at 127

My questions are:

  1. Are there any ways of silencing specific warnings like this? If so, is it possible to capture a warning in a variable in my code (i.e. similar to the try & catch exception mechanism) rather than having MATLAB print this warning in the command window?

  2. If the above is not possible. Is it there a way to silence all warnings in MATLAB temporarily?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:50:20+00:00Added an answer on May 23, 2026 at 6:50 pm

    Using the warning command, you can silence either all warnings or specific warnings by ID:

    WARNING('OFF', 'MSGID') and WARNING('ON', 'MSGID') disable and enable the
    display of any warning tagged with message identifier MSGID. (Use LASTWARN
    to determine the identifier of a warning, or use the WARNING VERBOSE feature
    described below.) WARNING is not case sensitive when matching message
    identifiers.

    For more help on the warning command, type help warning in the MATLAB command line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes depending on which user type if viewing my page, I need to add
I program in C++. Sometimes there are 1000 ways to do something, and depending
Sometimes i face the following problem : string txt = con.Request.Params[Par_name].ToString();//the original par value
Is it possible to change the div's font-size depending on how many characters are
Depending upon the url, sometimes multiple urls can be loaded, for example suppose you
I realized the only way to get a background image properly aligned was counting
My m-file opens figures depending on parameters. Sometimes is one figure, sometimes it opens
In some code I am writing, sometimes I get ticks values like this Clear[z];
Sometimes you come by Zip files with file or directory with some unrecognized characters
Sometimes I feel the urge to put some more expressiveness in my git commit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.