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.

2Colon :<br />

Purpose Create vectors, array subscripting, and for loop iterations<br />

Colon :<br />

Description The colon is one of the most useful operators in <strong>MATLAB</strong>. It can create vectors,<br />

subscript arrays, and specify for iterations.<br />

The colon operator uses the following rules to create regularly spaced vectors:<br />

j:k is the same as [j,j+1,...,k]<br />

j:k is empty if j>k<br />

j:i:k is the same as [j,j+i,j+2i, ...,k]<br />

j:i:k is empty if i>0 and j>k or if i

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

Saved successfully!

Ooh no, something went wrong!