23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2 Data Types<br />

Integer Functions<br />

Function<br />

int8, int16,<br />

int32, int64<br />

uint8, uint16,<br />

uint32, uint64<br />

ceil<br />

class<br />

fix<br />

floor<br />

isa<br />

isinteger<br />

isnumeric<br />

round<br />

Description<br />

Convert to signed 1-, 2-, 4-, or 8-byte integer.<br />

Convert to unsigned 1-, 2-, 4-, or 8-byte integer.<br />

Round towards plus infinity to nearest integer<br />

Return the data type of an object.<br />

Roundtowardszerotonearestinteger<br />

Round towards minus infinity to nearest integer<br />

Determine if input value has the specified data type.<br />

Determine if input value is an integer array.<br />

Determine if input value is a numeric array.<br />

Round towards the nearest integer<br />

Floating-Point Functions<br />

Function<br />

double<br />

single<br />

class<br />

isa<br />

isfloat<br />

isnumeric<br />

eps<br />

Description<br />

Convert to double precision.<br />

Converttosingleprecision.<br />

Return the data type of an object.<br />

Determine if input value has the specified data type.<br />

Determine if input value is a floating-point array.<br />

Determine if input value is a numeric array.<br />

Return the floating-point relative accuracy. This value<br />

is the tolerance <strong>MATLAB</strong> uses in its calculations.<br />

2-30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!