diff scripts/general/num2str.m @ 8893:937b58380b6a

num2str.m: Trivial bug fix. Recent switch from split() to strsplit() produced cells rather than character data.
author Ben Abbott <bpabbott@mac.com>
date Sun, 01 Mar 2009 09:49:37 -0500
parents 0c1a9c178fdd
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/general/num2str.m
+++ b/scripts/general/num2str.m
@@ -176,7 +176,7 @@
     nd = ndims (x);
     tmp = sprintf (fmt, permute (x, [2, 1, 3:nd]));
     tmp(length (tmp)) = "";
-    retval = strtrim (strsplit (tmp, "\n"));
+    retval = strtrim (char (strsplit (tmp, "\n")));
   endif
 
 endfunction