int8, int16, int32, int64 - Convert symbolic matrix to signed integers

Syntax

int8(S)
int16(S)
int32(S)
int64(S)

Description

int8(S) converts a symbolic matrix S to a matrix of signed 8-bit integers.

int16(S) converts S to a matrix of signed 16-bit integers.

int32(S) converts S to a matrix of signed 32-bit integers.

int64(S) converts S to a matrix of signed 64-bit integers.

The following table summarizes the output of these four functions.

Function

Output Range

Output Type

Bytes per Element

Output Class

int8

-128 to 127

Signed 8-bit integer

1

int8

int16

-32,768 to 32,767

Signed 16-bit integer

2

int16

int32

-2,147,483,648 to 2,147,483,647

Signed 32-bit integer

4

int32

int64

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Signed 64-bit integer

8

int64

See Also

sym, vpa, single, double, uint8, uint16, uint32, uint64

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS