Documentation

sint

CreateSimulink.NumericTypeobject describing signed integer data type

Syntax

a = sint(WordLength)

Description

sint(WordLength)返回一个Simulink.NumericTypeobject that describes the data type of a signed integer with a word size given byWordLength.

Note

sintis a legacy function. In new code, usefixdtinstead. In existing code, replace sint(WordLength)withfixdt(1,WordLength,0).

Examples

Define a 16-bit signed integer data type.

a = sint(16)
a = NumericType with properties: DataTypeMode: 'Fixed-point: binary point scaling' Signedness: 'Signed' WordLength: 16 FractionLength: 0 IsAlias: 0 DataScope: 'Auto' HeaderFile: '' Description: ''

Introduced before R2006a

Was this topic helpful?