Quantcast

Documentation Center

  • Trial Software
  • Product Updates

uint16

Convert fi object to unsigned 16-bit integer

Syntax

c = uint16(a)

Description

c = uint16(a) returns the built-in uint16 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 uint16.

Examples

This example shows the uint16 values of a fi object.

a = fi([-pi 0.5 pi],0,16);
c = uint16(a)

c =

   0    1    3

See Also

| | | | | | |

Was this topic helpful?