annotate toolboxes/MIRtoolbox1.3.2/MIRToolbox/mirverbose.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
rev   line source
wolffd@0 1 function v = mirverbose(s)
wolffd@0 2 % mirverbose(0) toggles off the display by MIRtoolbox of minor informations
wolffd@0 3 % in the Matlab Command Window (such as "Computing mirfunction ...").
wolffd@0 4 % mirverbose(1) toggles back on the display of such information.
wolffd@0 5
wolffd@0 6 persistent mir_verbose
wolffd@0 7
wolffd@0 8 if nargin
wolffd@0 9 mir_verbose = s;
wolffd@0 10 else
wolffd@0 11 if isempty(mir_verbose)
wolffd@0 12 mir_verbose = 1;
wolffd@0 13 end
wolffd@0 14 end
wolffd@0 15
wolffd@0 16 v = mir_verbose;