diff scripts/strings/str2mat.m @ 3174:390d5e396682

[project @ 1998-05-04 16:36:17 by jwe]
author jwe
date Mon, 04 May 1998 16:36:26 +0000
parents 1c267910655d
children 4f40efa995c1
line wrap: on
line diff
--- a/scripts/strings/str2mat.m
+++ b/scripts/strings/str2mat.m
@@ -47,7 +47,12 @@
     endif
   endfor
 
-  nr(find (nr == 0)) = 1;
+  tmp = find (nr == 0);
+
+  if (! isempty (tmp))
+    nr(tmp) = 1;
+  endif
+
   retval_nr = sum (nr);
   retval_nc = max (nc);