ITEC-200 Chapter Notes - Chapter *: Frustum, Sameer (Lyricist), Matlab
Document Summary
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 lists of text strings, combinations of text and numbers from spreadsheets or text files, or numeric arrays of different sizes. >> mycell = {1, 2, 3; "text", rand(2,3), [11; 12; 13]} mycell = 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: cell indexing with smooth parentheses, () Cell array indices in smooth parentheses refer to sets of cells. Update sets of cells by replacing them with the same number of cells.