uint8, uint16, uint32, uint64 - Convert symbolic matrix to unsigned integers

Syntax

uint8(S)
uint16(S)
uint32(S)
uint64(S)

Description

uint8(S) converts a symbolic matrix S to a matrix of unsigned 8-bit integers.

uint16(S) converts S to a matrix of unsigned 16-bit integers.

uint32(S) converts S to a matrix of unsigned 32-bit integers.

uint64(S) converts S to a matrix of unsigned 64-bit integers.

The following table summarizes the output of these four functions.

Function

Output Range

Output Type

Bytes per Element

Output Class

uint8

0 to 255

Unsigned 8-bit integer

1

uint8

uint16

0 to 65,535

Unsigned 16-bit integer

2

uint16

uint32

0 to 4,294,967,295

Unsigned 32-bit integer

4

uint32

uint64

0 to 18,446,744,073,709, 551,615

Unsigned 64-bit integer

8

uint64

See Also

sym, vpa, single, double, int8, int16, int32, int64

  


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