MATLAB Function Reference
  Go to function:
    Search    Help Desk 
int2str    Examples   See Also

Integer to string conversion

Syntax

Description

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.

Examples

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     Write formatted data to file

num2str     Number to string conversion

sprintf     Write formatted data to a string



[ Previous | Help Desk | Next ]