28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2intmax<br />

Purpose Return largest possible integer value<br />

Syntax v = intmax<br />

v = intmax('classname')<br />

intmax<br />

Description v = intmax is the largest positive value that can be represented in MATLAB<br />

with a 32-bit integer. Any value larger than the value returned by intmax<br />

saturates to the intmax value when cast to a 32-bit integer.<br />

v = intmax('classname') is the largest positive value in the integer class<br />

classname. Valid values for the string classname are<br />

'int8' 'int16' 'int32' 'int64'<br />

'uint8' 'uint16' 'uint32' 'uint64'<br />

intmax('int32') is the same as intmax with no arguments.<br />

Examples Find the maximum value for a 64-bit signed integer:<br />

v = intmax('int64')<br />

v =<br />

9223372036854775807<br />

Convert this value to a 32-bit signed integer:<br />

x = int32(v)<br />

x =<br />

2147483647<br />

Compare the result with the default value returned by intmax:<br />

isequal(x, intmax)<br />

ans =<br />

1<br />

See Also intmin, realmax, realmin, int8, uint8, isa, class<br />

2-1207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!