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.

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.

    Note   The output of int8, int16, int32, and int64 does not have data type symbolic.

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

| | | | | | |

Introduced before R2006a

Was this topic helpful?