23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Cell Arrays<br />

Note The examples in this section focus on two-dimensional cell arrays. For<br />

examples of higher-dimension cell arrays, see “Multidimensional Arrays”<br />

on page 1-52.<br />

This section covers these topics:<br />

• “Cell Array Operators” on page 2-95<br />

• “Creating a Cell Array” on page 2-96<br />

• “Referencing Cells of a Cell Array” on page 2-100<br />

• “Deleting Cells” on page 2-107<br />

• “Reshaping Cell Arrays” on page 2-107<br />

• “Replacing Lists of Variables with Cell Arrays” on page 2-108<br />

• “Applying Functions and Operators” on page 2-109<br />

• “Organizing Data in Cell Arrays” on page 2-110<br />

• “Nesting Cell Arrays” on page 2-111<br />

• “Converting Between Cell and Numeric Arrays” on page 2-113<br />

• “Cell Arrays of Structures” on page 2-114<br />

• “Function Summary” on page 2-115<br />

Cell Array Operators<br />

This table shows the operators used in constructing, concatenating, and<br />

indexing into the cells of a cell array.<br />

Operation Syntax Description<br />

Constructing<br />

C = {A B D<br />

E}<br />

Builds a cell array C that can contain data<br />

of unlike types in A, B, D, andE<br />

2-95

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

Saved successfully!

Ooh no, something went wrong!