Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

realmax

Largest positive fixed-point value or quantized number

Syntax

realmax(a)
realmax(q)

Description

realmax(a) is the largest real-world value that can be represented in the data type of fi object a. Anything larger overflows.

realmax(q) is the largest quantized number that can be represented where q is a quantizer object. Anything larger overflows.

Examples

q = quantizer('float',[6 3]);
x = realmax(q)

x =

    14

Algorithms

If q is a floating-point quantizer object, the largest positive number, x, is

x=2Emax(2eps(q))

If q is a signed fixed-point quantizer object, the largest positive number, x, is

x=2w112f

If q is an unsigned fixed-point quantizer object (datamode = 'ufixed'), the largest positive number, x, is

x=2w12f

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a

Was this topic helpful?