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?

Antworten (1)

Andrew Newell
Andrew Newell am 20 Feb. 2011

0 Stimmen

You could use disp.

Diese Frage ist geschlossen.

Produkte

Gefragt:

am 20 Feb. 2011

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by