replace last call to split with strsplit
author |
John W. Eaton <jwe@octave.org> |
date |
Fri, 27 Feb 2009 12:56:31 -0500 |
parents |
47fb59095191 |
children |
6e4a811e58f8 |
files |
scripts/ChangeLog scripts/general/num2str.m |
diffstat |
2 files changed, 3 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,5 +1,7 @@
2009-02-27 John W. Eaton <jwe@octave.org>
+ * general/num2str.m: Call strsplit instead of split.
+
* strings/strsplit.m: Style fixes.
2009-02-27 Jaroslav Hajek <highegg@gmail.com>
--- 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