Mercurial > octave-antonio
comparison scripts/strings/blanks.m @ 11472:1740012184f9
Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 09 Jan 2011 21:33:04 -0800 |
parents | eb63fbe60fab |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
11471:994e2a93a8e2 | 11472:1740012184f9 |
---|---|
40 function s = blanks (n) | 40 function s = blanks (n) |
41 | 41 |
42 if (nargin != 1) | 42 if (nargin != 1) |
43 print_usage (); | 43 print_usage (); |
44 elseif (! (isscalar (n) && n == round (n))) | 44 elseif (! (isscalar (n) && n == round (n))) |
45 error ("blanks: n must be a non-negative integer"); | 45 error ("blanks: N must be a non-negative integer"); |
46 endif | 46 endif |
47 | 47 |
48 ## If 1:n is empty, the following expression will create an empty | 48 ## If 1:n is empty, the following expression will create an empty |
49 ## character string. Otherwise, it will create a row vector. | 49 ## character string. Otherwise, it will create a row vector. |
50 s(1:n) = " "; | 50 s(1:n) = " "; |