23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

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.

Array Manipulation<br />

: Specify range of array elements<br />

blkdiag Construct block diagonal matrix from input arguments<br />

cat Concatenate arrays<br />

find Find indices and values of nonzero elements<br />

fliplr Flip matrices left-right<br />

flipud Flip matrices up-down<br />

flipdim Flip array along specified dimension<br />

horzcat Horizontal concatenation<br />

ind2sub Subscripts from linear index<br />

ipermute Inverse permute dimensions of multidimensional array<br />

permute Rearrange dimensions of multidimensional array<br />

repmat Replicate and tile array<br />

reshape Reshape array<br />

rot90 Rotate matrix 90 degrees<br />

shiftdim Shift dimensions<br />

sort Sort elements in ascending order<br />

sortrows Sort rows in ascending order<br />

squeeze Remove singleton dimensions<br />

sub2ind Single index from subscripts<br />

vertcat Horizontal concatenation<br />

Elementary Arrays<br />

Programming and Data Types<br />

: Regularly spaced vector<br />

blkdiag Construct block diagonal matrix from input arguments<br />

eye Identity matrix<br />

linspace Generate linearly spaced vectors<br />

logspace Generate logarithmically spaced vectors<br />

meshgrid Generate X and Y matrices for three-dimensional plots<br />

ndgrid Generate arrays for multidimensional functions and interpolation<br />

ones Create array of all ones<br />

rand Uniformly distributed random numbers and arrays<br />

randn Normally distributed random numbers and arrays<br />

zeros Create array of all zeros<br />

Operators and Operations<br />

• “Special Characters”<br />

• “Arithmetic Operations”<br />

• “Bit-wise Operations”<br />

• “Relational Operations”<br />

1-27

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

Saved successfully!

Ooh no, something went wrong!