Contents Previous Next Subchapters

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

Description
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.

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