Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

int2str

Convert integers to character array

Syntax

str = int2str(N)

Description

str = int2str(N) converts integers to a character array. 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) returns '5'.

One way to label a plot is

title(['case number ' int2str(n)])

For matrix or vector inputs, int2str returns a character array:

int2str(eye(3))

ans =

1  0  0
0  1  0
0  0  1

See Also

| | |

Introduced before R2006a

Was this topic helpful?