comparison scripts/general/int2str.m @ 16403:1de4ec2a856d

Matlab compatibility for strsplit() * scripts/strings/strsplit.m: Matlab compatible version. * NEWS: Mention break in backward compatibility. * scripts/deprecated/javafields.m: Modify call to strsplit(). * scripts/deprecated/javamethods.m: ditto * scripts/general/fieldnames.m: ditto * scripts/general/int2str.m: ditto * scripts/general/methods.m: ditto * scripts/general/num2str.m: ditto * scripts/help/gen_doc_cache.m: ditto * scripts/help/help.m: ditto * scripts/help/lookfor.m: ditto * scripts/io/strread.m: ditto * scripts/java/javaclasspath.m: ditto * scripts/miscellaneous/compare_versions.m: ditto * scripts/miscellaneous/computer.m: ditto * scripts/miscellaneous/fact.m: ditto * scripts/miscellaneous/tar.m: ditto * scripts/miscellaneous/unpack.m: ditto * scripts/miscellaneous/what.m: ditto * scripts/miscellaneous/zip.m: ditto * scripts/pkg/private/configure_make.m: ditto * scripts/pkg/private/fix_depends.m: ditto * scripts/pkg/private/generate_lookfor_cache.m: ditto * scripts/pkg/private/list_forge_packages.m: ditto * scripts/pkg/private/unload_packages.m: ditto * scripts/pkg/private/write_index.m: ditto * scripts/plot/private/__file_filter__.m: ditto * scripts/plot/private/__fltk_file_filter__.m: ditto * scripts/plot/private/__go_draw_axes__.m: ditto * scripts/plot/private/__next_line_style__.m: ditto * scripts/strings/untabify.m: ditto * scripts/testfun/rundemos.m: ditto * scripts/testfun/runtests.m: ditto
author Ben Abbott <bpabbott@mac.com>
date Sun, 31 Mar 2013 19:19:04 -0400
parents 5d3a684236b0
children b7667fcb9fbc
comparison
equal deleted inserted replaced
16402:7fa90eb41240 16403:1de4ec2a856d
71 else 71 else
72 fmt = cstrcat (get_fmt (n, 0), "\n"); 72 fmt = cstrcat (get_fmt (n, 0), "\n");
73 endif 73 endif
74 tmp = sprintf (fmt, permute (n, [2, 1, 3 : nd])); 74 tmp = sprintf (fmt, permute (n, [2, 1, 3 : nd]));
75 tmp(end) = ""; 75 tmp(end) = "";
76 retval = char (strsplit (tmp, "\n")); 76 retval = char (strsplit (tmp, "\n", false));
77 77
78 endfunction 78 endfunction
79 79
80 function fmt = get_fmt (x, sep) 80 function fmt = get_fmt (x, sep)
81 81