Smallest value of specified integer type
v = intmin
v = intmin('classname')
v = intmin is the smallest value that can be represented in the MATLAB® software with a 32-bit integer. Any value smaller than the value returned by intmin saturates to the intmin value when cast to a 32-bit integer.
intmin('int32') is the same as intmin with no arguments.
Find the minimum value for a 64-bit signed integer:
v = intmin('int64') v = -9223372036854775808
Convert this value to a 32-bit signed integer:
x = int32(v) x = 2147483647
Compare the result with the default value returned by intmin:
isequal(x, intmin) ans = 1