Main Content


Stored integer value of fi object as built-in uint32


c = uint32(a)


c = uint32(a) returns the built-in uint32 value of fi object a, based on its real world value. If necessary, the data is rounded-to-nearest and saturated to fit into an uint32.


This example shows the uint32 values of a fi object.

a = fi([-pi 0.5 pi],0,32);
c = uint32(a)

c =

   0    1    3

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