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.

Colon :<br />

Examples Using the colon with integers,<br />

2-26<br />

D = 1:4<br />

results in<br />

D =<br />

1 2 3 4<br />

Using two colons to create a vector with arbitrary real increments between the<br />

elements,<br />

E = 0:.1:.5<br />

results in<br />

E =<br />

The command<br />

0 0.1000 0.2000 0.3000 0.4000 0.5000<br />

A(:,:,2) = pascal(3)<br />

generates a three-dimensional array whose first page is all zeros.<br />

A(:,:,1) =<br />

0 0 0<br />

0 0 0<br />

0 0 0<br />

A(:,:,2) =<br />

1 1 1<br />

1 2 3<br />

1 3 6<br />

See Also for, linspace, logspace, reshape

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

Saved successfully!

Ooh no, something went wrong!