cdisp
Function cdisp is intended as an alternative to disp. It can be used to display messages in the command window and log messages in a log file, according to a verbosity level.
An importance level can be set for each message, and display or logging of the message is performed only if the value of global variables "VERBOSE" and "LOGVERBOSE" are higher or equal to the message importance level.
The log file can be specified, as well as an identification string, which is displayed before the actual message in a 16-character-wide margin.
Two other global variables, ONLYFROM and NOTFROM, can be used to display messages with specific idstrings.
Cite As
Francois Bouffard (2026). cdisp (https://uk.mathworks.com/matlabcentral/fileexchange/4563-cdisp), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | ONLYFROM and NOTFROM control variables added |
