Scaling of least significant bit of
or value of least significant bit of
b = lsb(a)
p = lsb(q)
b = lsb(a) returns the scaling of the least
significant bit of
The result is equivalent to the result given by the
p = lsb(q) returns the quantization level
q, or the
1.0 to the next largest floating-point
q is a floating-point
This example uses the
lsb function to find the value of the least
significant bit of the
q = quantizer('fixed',[8 7]); p = lsb(q)
p = 0.0078
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Usage notes and limitations:
Code generation supports scalar fixed-point signals only.
Code generation supports scalar, vector, and matrix,
fisingle and double signals.
HDL Code Generation
Generate Verilog and VHDL code for FPGA and ASIC designs using HDL Coder™.
Introduced before R2006a