Code covered by the BSD License  

Highlights from
Statistical Learning Toolbox

from Statistical Learning Toolbox by Dahua Lin
Functions for statistical learning, pattern recognition and computer vision, covering many topics.

Description of slsharedisp_word
Home > sltoolbox > utils > slsharedisp_word.m

slsharedisp_word

PURPOSE ^

SLSHAREDISP_WORD Displays message without line breaking

SYNOPSIS ^

function slsharedisp_word(varargin)

DESCRIPTION ^

SLSHAREDISP_WORD Displays message without line breaking

 $ Syntax $
   - slsharedisp_word(...)

 $ History $
   - Created by Dahua Lin, on Aug 31, 2006

CROSS-REFERENCE INFORMATION ^

This function calls:
This function is called by:
  • sliterproc SLITERPROC Runs a general iterative process

SOURCE CODE ^

0001 function slsharedisp_word(varargin)
0002 %SLSHAREDISP_WORD Displays message without line breaking
0003 %
0004 % $ Syntax $
0005 %   - slsharedisp_word(...)
0006 %
0007 % $ History $
0008 %   - Created by Dahua Lin, on Aug 31, 2006
0009 %
0010 
0011 global GLOBAL_SHARE_DISPLAYER;
0012 global GLOBAL_SHARE_DISPLAYER_LINEBREAK;
0013 
0014 if isempty(GLOBAL_SHARE_DISPLAYER)
0015     error('sltoolbox:gdisperr', ...
0016         'The global displayer is not open');
0017 end
0018 
0019 if isempty(GLOBAL_SHARE_DISPLAYER_LINEBREAK)
0020     GLOBAL_SHARE_DISPLAYER_LINEBREAK = true;
0021 end
0022 
0023 s = GLOBAL_SHARE_DISPLAYER(end);
0024 
0025 if s.show && ~isempty(varargin)
0026     nblanks = s.indent * s.indentstep;
0027     if length(varargin) == 1
0028         strmsg = varargin{1};
0029     else
0030         strmsg = sprintf(varargin{:});
0031     end
0032     if nblanks > 0 && GLOBAL_SHARE_DISPLAYER_LINEBREAK
0033         strmsg = [blanks(nblanks), strmsg];
0034     end
0035     fprintf('%s', strmsg);
0036 end
0037 
0038 GLOBAL_SHARE_DISPLAYER_LINEBREAK = false;

Generated on Wed 20-Sep-2006 12:43:11 by m2html © 2003

Contact us at files@mathworks.com