# HG changeset patch # User jwe # Date 1115831508 0 # Node ID b3ba123faec841d7074dedf9e6ad906779cbfa6b # Parent 679cc8fec4086647c07bf8aef5c9086f611ec0eb [project @ 2005-05-11 17:11:48 by jwe] diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,8 @@ 2005-05-11 John W. Eaton + * strings/findstr.m: Allow non-string arguments for compatiblity. + From Tom Holroyd . + * plot/polar.m: Don't call __pltopt__ here. 2005-05-02 John W. Eaton diff --git a/scripts/strings/findstr.m b/scripts/strings/findstr.m --- 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)