LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
line_printf.m
1function line_printf(MSG,varargin)
2% LINE_PRINTF(MSG, VARARGIN)
3
4% Copyright (c) 2012-2026, Imperial College London
5% All rights reserved.
6
7if GlobalConstants.Verbose ~= VerboseLevel.SILENT
8% MSG = strrep(MSG,'\n','');
9% MSG = strrep(MSG, '\', '\\');
10% if ~contains(MSG,'...')
11% if contains(MSG,'Summary')
12% fprintf(GlobalConstants.StdOut, sprintf('%s\n',sprintf(MSG, varargin{:})));
13% elseif contains(MSG,'Iter')
14% fprintf(GlobalConstants.StdOut, sprintf('%s',sprintf(MSG, varargin{:})));
15% else
16% fprintf(GlobalConstants.StdOut, '%s\n', sprintf(MSG, varargin{:}));
17% end
18% else
19 MSG = sprintf('%s',sprintf(MSG, varargin{:}));
20 fprintf(GlobalConstants.StdOut, '%s', MSG);
21% end
22end
23end