Mercurial > octave-nkf
changeset 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 | 47fb59095191 |
children | 6e4a811e58f8 |
files | scripts/ChangeLog scripts/general/num2str.m |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Fri Feb 27 12:51:20 2009 -0500 +++ b/scripts/ChangeLog Fri Feb 27 12:56:31 2009 -0500 @@ -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 Fri Feb 27 12:51:20 2009 -0500 +++ b/scripts/general/num2str.m Fri Feb 27 12:56:31 2009 -0500 @@ -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