Mercurial > hg > octave-lyh
diff scripts/strings/blanks.m @ 6387:24666a9192f2
[project @ 2007-03-07 08:43:03 by jwe]
author | jwe |
---|---|
date | Wed, 07 Mar 2007 08:43:04 +0000 |
parents | c5874b47d571 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/scripts/strings/blanks.m +++ b/scripts/strings/blanks.m @@ -34,7 +34,9 @@ error ("blanks: n must be a non-negative integer"); endif - s(1,1:n) = " "; + ## If 1:n is empty, the following expression will create an empty + ## character string. Otherwise, it will create a row vector. + s(1:n) = " "; endfunction