Mercurial > hg > octave-lyh
diff scripts/strings/findstr.m @ 5348:b3ba123faec8
[project @ 2005-05-11 17:11:48 by jwe]
author | jwe |
---|---|
date | Wed, 11 May 2005 17:11:48 +0000 |
parents | 4c8a2e4e0717 |
children | c7e3cf2fce3e |
line wrap: on
line diff
--- 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)