MATLAB Function Reference Previous page   Next Page

Convert integer to string



str = int2str(N) converts an integer to a string with integer format. The input N can be a single integer or a vector or matrix of integers. Noninteger inputs are rounded before conversion.


int2str(2+3) is the string '5'.

One way to label a plot is

For matrix or vector inputs, int2str returns a string matrix:

See Also

fprintf, num2str, sprintf

Previous page  inspect int8, int16, int32, int64 Next page

© 1994-2005 The MathWorks, Inc.