Programming Previous page   Next Page

Deleting Cells

You can delete an entire dimension of cells using a single statement. Like standard array deletion, use vector subscripting when deleting a row or column of cells and assign the empty matrix to the dimension:

When deleting cells, curly braces do not appear in the assignment statement at all.

Reshaping Cell Arrays

Like other arrays, you can reshape cell arrays using the reshape function. The number of cells must remain the same after reshaping; you cannot use reshape to add or remove cells:


Previous page  Obtaining Data from Cell Arrays Replacing Lists of Variables with Cell Arrays Next page

© 1994-2005 The MathWorks, Inc.