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.

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


Largest value of specified integer type


v = intmax
v = intmax('classname')


v = intmax is the largest positive value that can be represented in the MATLAB® software with a 32-bit integer. Any value larger than the value returned by intmax saturates to the intmax value when cast to a 32-bit integer.

v = intmax('classname') is the largest positive value in the integer class classname. Valid values for the string classname are









intmax('int32') is the same as intmax with no arguments.


Find the maximum value for a 64-bit signed integer:

v = intmax('int64')
v =

Convert this value to a 32-bit signed integer:

x = int32(v)
x =

Compare the result with the default value returned by intmax:

isequal(x, intmax)
ans =

See Also

| | | | | |

Introduced before R2006a

Was this topic helpful?