comparison scripts/strings/findstr.m @ 6046:34f96dd5441b

[project @ 2006-10-10 16:10:25 by jwe]
author jwe
date Tue, 10 Oct 2006 16:10:31 +0000
parents 2a16423e4aa0
children 93c65f2a5668
comparison
equal deleted inserted replaced
6045:421d8a903df7 6046:34f96dd5441b
39 ## Adapted-By: jwe 39 ## Adapted-By: jwe
40 40
41 function v = findstr (s, t, overlap) 41 function v = findstr (s, t, overlap)
42 42
43 if (nargin < 2 || nargin > 3) 43 if (nargin < 2 || nargin > 3)
44 usage ("findstr (s, t, overlap)"); 44 print_usage ();
45 endif 45 endif
46 46
47 if (all (size (s) > 1) || all (size (t) > 1)) 47 if (all (size (s) > 1) || all (size (t) > 1))
48 error ("findstr: arguments must have only one non-singleton dimension"); 48 error ("findstr: arguments must have only one non-singleton dimension");
49 endif 49 endif