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?

답변 (1개)

Andrew Newell
Andrew Newell 2011년 2월 20일

0 개 추천

You could use disp.

이 질문은 마감되었습니다.

제품

질문:

2011년 2월 20일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by