Main Content

upperbound

Upper bound of range offiobject

Description

example

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

Ifl = lowerbound(a)andu = 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

Inputfiobject.

Data Types:fi

Extended Capabilities

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

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

Version History

Introduced before R2006a