home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / STRFUN.DI$ / BLANKS.M next >
Encoding:
Text File  |  1993-03-07  |  319 b   |  12 lines

  1. function b = blanks(n)
  2. %BLANKS    A string of blanks.
  3. %    BLANKS(n) is a string of n blanks.
  4. %    Use with DISP, eg.  DISP(['xxx' BLANKS(20) 'yyy']).
  5. %    DISP(BLANKS(n)') moves the cursor down n lines.
  6. %
  7. %    See also CLC, HOME, FORMAT COMPACT.
  8.  
  9. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  10.  
  11. b = setstr(ones(1,n)*' ');
  12.