Mercurial > hg > octave-lyh
changeset 5348:b3ba123faec8
[project @ 2005-05-11 17:11:48 by jwe]
author | jwe |
---|---|
date | Wed, 11 May 2005 17:11:48 +0000 |
parents | 679cc8fec408 |
children | e965ab89f832 |
files | scripts/ChangeLog scripts/strings/findstr.m |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,8 @@ 2005-05-11 John W. Eaton <jwe@octave.org> + * strings/findstr.m: Allow non-string arguments for compatiblity. + From Tom Holroyd <tomh@kurage.nimh.nih.gov>. + * plot/polar.m: Don't call __pltopt__ here. 2005-05-02 John W. Eaton <jwe@octave.org>
--- a/scripts/strings/findstr.m +++ b/scripts/strings/findstr.m @@ -44,8 +44,8 @@ usage ("findstr (s, t, overlap)"); endif - if (! isstr (s) || ! isstr (t) || all (size (s) > 1) || all (size (t) > 1)) - error ("findstr: expecting first two arguments to be strings"); + if (all (size (s) > 1) || all (size (t) > 1)) + error ("findstr: arguments must have only one non-singleton dimension"); endif if (nargin == 2)