| | | Cell Arrays In this section... "Overview" on page 2-97 "Cell Array Operators" on page 2-98 "Creating a Cell Array" on page 2-99 "Referencing Cells of a Cell Array" on page 2-103 "Deleting Cells" on page 2-110 "Reshaping Cell Arrays" on page 2-110 "Replacing Lists of Variables with Cell Arrays" on page 2-111 "Applying Functions and Operators" on page 2-112 "Organizing Data in Cell Arrays" on page 2-113 "Nesting Cell Arrays" on page 2-114 "Converting Between Cell and Numeric Arrays" on page 2-116 "Cell Arrays of Structures" on page 2-117 "Function Summary" on page 2-118 | | |
| | | Overview A cell array provides a storage mechanism for dissimilar kinds of data. You can store arrays of different types and/or sizes within the cells of a cell array. For example, you can store a 1-by-50 char array, a 7-by-13 double array, and a 1-by-1 uint32 in cells of the same cell array. This illustration shows a cell array A that contains arrays of unsigned integers in A{1,1}, strings in A{1 ,2}, complex numbers in A{1,3}, floating-point numbers in A{2,1}, signed integers in A{2,2}, and another cell array in A{2,3}. | | |