Home > matlabmk > VerbReport.m

VerbReport

PURPOSE ^

VerbReport() - Outputs messages if they exceed a desired level of importance.

SYNOPSIS ^

function VerbReport(report,verbtag,VERBLEVEL)

DESCRIPTION ^

 VerbReport() - Outputs messages if they exceed a desired level of importance.  

 Usage:
  >> VerbReport(report,verbtag,VERBLEVEL)

 Inputs:
   report    = a string that is some message to the user
   verbtag   = an intger specifiying the importance of report
   VERBLEVEL = an integer specifiying a threshold of importance
               for displaying reports. If verbtag is less than VERBLEVEL, the
               report will be displayed..

 Author: Tom Urbach
 Kutaslab

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function VerbReport(report,verbtag,VERBLEVEL)
0002 % VerbReport() - Outputs messages if they exceed a desired level of importance.
0003 %
0004 % Usage:
0005 %  >> VerbReport(report,verbtag,VERBLEVEL)
0006 %
0007 % Inputs:
0008 %   report    = a string that is some message to the user
0009 %   verbtag   = an intger specifiying the importance of report
0010 %   VERBLEVEL = an integer specifiying a threshold of importance
0011 %               for displaying reports. If verbtag is less than VERBLEVEL, the
0012 %               report will be displayed..
0013 %
0014 % Author: Tom Urbach
0015 % Kutaslab
0016 
0017 if nargin<3
0018   tmpVERBLEVEL = 3;
0019 elseif isempty(VERBLEVEL)
0020   tmpVERBLEVEL = 3;
0021 else
0022   tmpVERBLEVEL = VERBLEVEL;
0023 end;
0024 
0025 if verbtag <= tmpVERBLEVEL
0026     if ischar(report)
0027         fprintf('%s\n',report);
0028     else
0029         fprintf('%d\n',report);
0030     end;
0031 end;

Generated on Tue 10-May-2016 16:37:45 by m2html © 2005