Main Content

upperbound

Upper bound of range of fi object

Description

example

u = upperbound(a) returns the upper bound of the range of fi object a.

If l = lowerbound(a) and u = upperbound(a), then [l,u] = range(a).

Examples

collapse all

a = fi(pi,1,16,3,2)
a = 
     2

          DataTypeMode: Fixed-point: slope and bias scaling
            Signedness: Signed
            WordLength: 16
                 Slope: 3
                  Bias: 2
u = upperbound(a)
u = 
       98303

          DataTypeMode: Fixed-point: slope and bias scaling
            Signedness: Signed
            WordLength: 16
                 Slope: 3
                  Bias: 2

Input Arguments

collapse all

Input fi object.

Data Types: fi

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