how to control program output in the way warning() does

I like the design of warning() and tried to use it to control my program output. However it shows "warning" all the time, which is not what I want.
Some other designs use verbose level parameter to control what information should be printed out. However, that approach seems tedious.
What do you use to control your program output messages?

This question is closed.

Products

Asked:

on 20 Feb 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!