22.07.2013 Views

Matlab Function Reference Guide II (pdf) - Computer Engineering ...

Matlab Function Reference Guide II (pdf) - Computer Engineering ...

Matlab Function Reference Guide II (pdf) - Computer Engineering ...

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.

1 <strong>Function</strong>s – By Category<br />

1-24<br />

Data Type Conversion<br />

Numeric<br />

double Convert to double-precision<br />

int8 Convert to signed 8-bit integer<br />

int16 Convert to signed 16-bit integer<br />

int32 Convert to signed 32-bit integer<br />

int64 Convert to signed 64-bit integer<br />

single Convert to single-precision<br />

uint8 Convert to unsigned 8-bit integer<br />

uint16 Convert to unsigned 16-bit integer<br />

uint32 Convert to unsigned 32-bit integer<br />

uint64 Convert to unsigned 64-bit integer<br />

String to Numeric<br />

base2dec Convert base N number string to decimal number<br />

bin2dec Convert binary number string to decimal number<br />

hex2dec Convert hexadecimal number string to decimal number<br />

hex2num Convert hexadecimal number string to double number<br />

str2double Convert string to double-precision number<br />

str2num Convert string to number<br />

Numeric to String<br />

char Convert to character array (string)<br />

dec2base Convert decimal to base N number in string<br />

dec2bin Convert decimal to binary number in string<br />

dec2hex Convert decimal to hexadecimal number in string<br />

int2str Convert integer to string<br />

mat2str Convert a matrix to string<br />

num2str Convert number to string<br />

Other Conversions<br />

cell2mat Convert cell array of matrices into single matrix<br />

cell2struct Convert cell array to structure array<br />

datestr Convert serial date number to string<br />

func2str Convert function handle to function name string<br />

logical Convert numeric to logical array<br />

mat2cell Divide matrix up into cell array of matrices<br />

num2cell Convert a numeric array to cell array<br />

str2func Convert function name string to function handle<br />

struct2cell Convert structure to cell array

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

Saved successfully!

Ooh no, something went wrong!