Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

int32

Convert fi object to signed 32-bit integer

Syntax

c = int32(a)

Description

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

Examples

This example shows the int32 values of a fi object.

a = fi([-pi 0.1 pi],1,32);
c = int32(a)

c =

   -3    0    3

Extended Capabilities

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

Introduced before R2006a

Was this topic helpful?