version 1.0.0 (1.84 KB) by Emmanuel Farhi
VERBOSITY control the verbosity level of output messages


Updated 6 Dec 2018

View License

VERBOSITY control the verbosity level of output messages

Set the current verbosity level with e.g.:


Get the current verbosity level:

level = verbosity; % return the verbosity level (number)

Output a message when it is allowed by the current verbosity level:

verbosity('normal', 'message')
verbosity('verbose', 'message %g %s', arg1, arg2)
verbosity(2, 'message %g %s', arg1, arg2) % same as 'info'

Verbosity levels:

0 error (no message except errors)
1 warning (important messages not being errors)
2 info (normal messages)
3 verbose (messages for e.g. debugging)

(c) E.Farhi, ILL. License: BSD.

Cite As

Emmanuel Farhi (2022). verbosity (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Log Output Verbosity Control

Community Treasure Hunt

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

Start Hunting!