Navigation

Operators and Keywords

Function List:

C++ API

int2str.m File Reference


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)

Function Documentation

!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 (  ) 

if ( any(t(tfw==fw)< 0)   ) 

if ( any(nan_inf  ) 

if ( isempty(t)   ) 

if ( nc  ,
 
)

!error int2str ( ,
 
)

!error int2str (  ) 

else print_usage (  ) 

tmp ( end   ) 


Variable Documentation

endif endif fmt = cstrcat (ifmt, repmat (rfmt, 1, nc-1), "\n")

fw = max (tfw)

for i

Initial value:

 1:nd
        idx{i} = 1:sz(i)

ifmt = get_fmt (x(idx{:}), 0)

else nan_inf = isinf (t) | isnan (t)

nc = columns (x)

nd = ndims (x)

retval

Initial value:

 int2str (x)

  if (nargin == 1)
    x = round (real(x))

rfmt = get_fmt (x(idx{:}), 2)

sz = size(x)

endif t = t(t != 0)

else tfw = floor (log10 (double (abs (t)))) + 1 + sep

endif tmp = sprintf (fmt, permute (x, [2, 1, 3 : nd]))