diff scripts/strings/findstr.m @ 5400:c7e3cf2fce3e

[project @ 2005-07-05 15:01:32 by jwe]
author jwe
date Tue, 05 Jul 2005 15:01:32 +0000
parents b3ba123faec8
children 2a16423e4aa0
line wrap: on
line diff
--- a/scripts/strings/findstr.m	Fri Jun 17 21:16:22 2005 +0000
+++ b/scripts/strings/findstr.m	Tue Jul 05 15:01:32 2005 +0000
@@ -117,7 +117,11 @@
       v = v(find (keep));
     endif
   endif
-  
+
+  if (isempty (v))
+    v = [];
+  endif
+
   ## Always return a column vector, because that's what the old one did
   if (rows (v) > 1) 
     v = v.';