diff scripts/general/num2str.m @ 8886:0c1a9c178fdd

replace last call to split with strsplit
author John W. Eaton <jwe@octave.org>
date Fri, 27 Feb 2009 12:56:31 -0500
parents 2c8b2399247b
children 937b58380b6a
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 (split (tmp, "\n"));
+    retval = strtrim (strsplit (tmp, "\n"));
   endif
 
 endfunction