How do I receive information on how to suppress warning messages to my MATLAB Command Window in MATLAB 7.0 (R14)?

5 views (last 30 days)
In MATLAB 6.5 (R13) when I typed the following code:
1/0
MATLAB returned a way for me to quickly disable the warning received as shown:
Warning: Divide by zero.
(Type "warning off MATLAB:divideByZero" to suppress this warning.)
Now, this display for turning off the warning is no longer available.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
In MATLAB 7.0 (R14), the warning display is set to "off" by default. However, you can change this option by using the following command:
warning verbose
Likewise, you can choose the option to be "on" or "off" explicitly with the following lines of code:
warning verbose on
warning verbose off
To set the warning display to "on" by default, you can put the above command in your startup.m file.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!