1function line_verbosity(level)
2%LINE_VERBOSITY Sets the global verbosity level
for the LINE toolbox.
4% LINE_VERBOSITY(LEVEL) sets the verbosity of LINE
's output and configures
5% MATLAB's warning behavior accordingly.
7% LEVEL should be one of the following (defined in VerboseLevel):
8% - VerboseLevel.SILENT : Disables warnings and suppresses console output.
9% - VerboseLevel.STD : Enables standard verbosity and warning backtrace.
10% - VerboseLevel.DEBUG : Enables debug-level output if supported.
12% If LEVEL
is not provided, it defaults to VerboseLevel.STD.
15% line_verbosity(VerboseLevel.SILENT);
17% See also: VerboseLevel, warning
19% Copyright (c) 2012-2026, Imperial College London
24% Default to standard verbosity
if no level
is provided
26 level = VerboseLevel.STD;
29% Adjust MATLAB warning behavior based on selected verbosity level
31 case VerboseLevel.SILENT
32 warning off % Fully suppress warnings
34 warning on backtrace % Enable warnings with backtrace info
37% Apply selected verbosity level globally