How to not display warnings?

5 views (last 30 days)
Vinicius Almeida
Vinicius Almeida on 15 Mar 2022
Commented: Voss on 16 Mar 2022
Hi guys, i would like to not display warning messages when my code is runing. There is something i can do to not show them? My warning is one like the image:

Accepted Answer

Voss
Voss on 15 Mar 2022
warning('off','MATLAB:singularMatrix')

More Answers (1)

Image Analyst
Image Analyst on 15 Mar 2022
See attached function that turns off a bunch of typical warnings you don't want to see. Adapt as needed for when you run across some other annoying ones.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!