verbose

Sets the verbose level in the current session. If level is greater than 0, additional information is provided when the commands are executed. If no argument is provided, verbose returns the current setting.

Syntax

verbose(level)

verbose

R = verbose

Inputs

level
Any value greater than 0 will provide additional details when executing commands.
Type: scalar

Outputs

R
scalar

Example

Set the verbose level to 1:
verbose(1);
pause(2)
% Additional output will be displayed as verbose is greater than 0
Execution is paused for 2 second(s)...
Return the verbose level:
verbose
ans = 1
Return the verbose level to a variable:
R = verbose
R = 1