Mercurial > hg > octave-lyh
changeset 6387:24666a9192f2
[project @ 2007-03-07 08:43:03 by jwe]
author | jwe |
---|---|
date | Wed, 07 Mar 2007 08:43:04 +0000 |
parents | 5a91bf0a47e8 |
children | 4109a2386346 |
files | scripts/ChangeLog scripts/strings/blanks.m |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2007-03-07 John W. Eaton <jwe@octave.org> + + * strings/blanks.m: Omit first index in assignment. + 2007-03-07 Paul Kienzle <pkienzle@users.sf.net> * set/setdiff.m: Some code cleanup and a fix for setdiff on rows.
--- 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