verbosity

版本 1.0.0 (1.8 KB) 作者: Emmanuel Farhi
VERBOSITY control the verbosity level of output messages
31.0 次下载
更新时间 2018/12/6

查看许可证

VERBOSITY control the verbosity level of output messages

Set the current verbosity level with e.g.:

verbosity(level)

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.

引用格式

Emmanuel Farhi (2024). verbosity (https://www.mathworks.com/matlabcentral/fileexchange/69631-verbosity), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Security 的更多信息
致谢

参考作品: Log Output Verbosity Control

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0