Main Content

realmin

Smallest positive normalized fixed-point value or quantized number

Syntax

x=realmin(a)
x=realmin(q)

Description

x=realmin(a) is the smallest positive real-world value that can be represented in the data type of fi object a. Anything smaller than x underflows or is an IEEE® “denormal” number.

x=realmin(q) is the smallest positive normal quantized number where q is a quantizer object. Anything smaller than x underflows or is an IEEE “denormal” number.

Examples

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

                      0.25

Algorithms

If q is a floating-point quantizer object, x=2Emin where Emin=exponentmin(q) is the minimum exponent.

If q is a signed or unsigned fixed-point quantizer object, x=2f=ε where f is the fraction length.

Extended Capabilities

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

HDL Code Generation
Generate VHDL, Verilog and SystemVerilog code for FPGA and ASIC designs using HDL Coder™.

Version History

Introduced before R2006a