Functions | |
if (nc > 1) idx | |
endfor | idx (2) |
tmp (end) | |
else | print_usage () |
if (isempty(t)) fmt | |
if (any(nan_inf)) if(any(t(nan_inf)< 0)) min_fw | |
if (any(t(tfw==fw)< 0)) fw++ | |
endif endif endfunction | !assert (strcmp(int2str(-123),"-123")&&strcmp(int2str(1.2),"1")) |
!assert (all(int2str([1, 2, 3;4, 5, 6])==["1 2 3";"4 5 6"])) | |
!error | int2str () |
!error | int2str (1, 2) |
Variables | |
function | retval |
sz = size(x) | |
nd = ndims (x) | |
nc = columns (x) | |
for | i |
ifmt = get_fmt (x(idx{:}), 0) | |
rfmt = get_fmt (x(idx{:}), 2) | |
fmt = cstrcat (ifmt, repmat (rfmt, 1, nc-1), "\n") | |
endif | tmp = sprintf (fmt, permute (x, [2, 1, 3 : nd])) |
t = t(t != 0) | |
else | nan_inf = isinf (t) | isnan (t) |
else | min_fw = 3 + sep |
else | tfw = floor (log10 (double (abs (t)))) + 1 + sep |
fw = max (tfw) |
!assert | ( | all(int2str([1, 2, 3;4, 5, 6])==["1 2 3";"4 5 6"]) | ) |
endif endif endfunction !assert | ( | strcmp(int2str(-123),"-123")&&strcmp(int2str(1.2),"1") | ) |
endfor idx | ( | 2 | ) |
if | ( | any(nan_inf) | ) |
if | ( | isempty(t) | ) |
if | ( | nc | , | |
1 | ||||
) |
!error int2str | ( | 1 | , | |
2 | ||||
) |
!error int2str | ( | ) |
else print_usage | ( | ) |
tmp | ( | end | ) |
ifmt = get_fmt (x(idx{:}), 0) |
nc = columns (x) |
rfmt = get_fmt (x(idx{:}), 2) |
sz = size(x) |
endif t = t(t != 0) |