What Is a Cell Array?
A cell array is a data type with indexed data containers called cells. Each cell can contain any type of
data. Cell arrays commonly contain pieces of text, combinations of text and numbers from
spreadsheets or text files, or numeric arrays of different sizes.
There are two ways to refer to the elements of a cell array. Enclose indices in smooth parentheses,
(), to refer to sets of cells — for example, to define a subset of the array. Enclose indices in curly
braces, {}, to refer to the text, numbers, or other data within individual cells.
For more information, see:
• “Create Cell Array” on page 12-3
• “Access Data in Cell Array” on page 12-5
12 Cell Arrays
12-2
Précédent

- 538/1450

Suivant