Contents Previous Next Subchapters

Converting to Integer Ascii Representation (Mlmode)
Syntax int2str(x)
See Also sprintf , ntoa

Returns a string containing an ascii representation of the nearest integer to x where x is an the integer, real, double-precision or complex scalar. If x is complex, only its real part is used.

If you enter
     k   = 1;
     lbl = ['x(', int2str(k), ')']
O-Matrix will reply
     lbl = x(1)