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.

Cell Arrays<br />

Deleting Cells<br />

You can delete an entire dimension of cells using a single statement. Like<br />

standard array deletion, use vector subscripting when deleting a row or<br />

column of cells and assign the empty matrix to the dimension:<br />

A(cell_subscripts) = []<br />

When deleting cells, curly braces do not appear in the assignment statement<br />

at all.<br />

Reshaping Cell Arrays<br />

Like other arrays, you can reshape cell arrays using the reshape function.<br />

The number of cells must remain the same after reshaping; you cannot use<br />

reshape to add or remove cells:<br />

A = cell(3, 4);<br />

size(A)<br />

ans =<br />

2-107

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

Saved successfully!

Ooh no, something went wrong!