Main Content

eps

Quantized relative accuracy for fi or quantizer objects

Description

d = eps(a) returns the value of the least significant bit of the fi object a. The result of this function is equivalent to that given by the Fixed-Point Designer™ function lsb.

example

d = eps(q) returns the value of the least significant bit of the fixed-point representation for quantizer object q.

example

Examples

collapse all

a = fi(pi, 1, 8)
eps(a)
ans =

    0.1250
q = quantizer('fixed',[6 3]);
eps(q)
ans =

    0.1250

Input Arguments

collapse all

Input fi object.

Data Types: fi

Input quantizer object.

Extended Capabilities

Version History

Introduced before R2006a