diff scripts/strings/mat2str.m @ 5946:4b433225128d

[project @ 2006-08-21 15:54:50 by jwe]
author jwe
date Mon, 21 Aug 2006 15:57:09 +0000
parents 376e02b2ce70
children 8b0cfeb06365
line wrap: on
line diff
--- a/scripts/strings/mat2str.m
+++ b/scripts/strings/mat2str.m
@@ -109,6 +109,7 @@
     s = ["[", s];
     s(end) = "]";
     ind = find (s == ",");
+    nc = columns (x);
     s(ind(nc:nc:end)) = ";";
   endif