Documentation Center

  • Trials
  • Product Updates

Cell Arrays

Arrays that can contain data of varying types and sizes

Start Here

A cell array is a data type with indexed data containers called cells, where each cell can contain any type of data. Cell arrays commonly contain either lists of text strings, combinations of text and numbers, or numeric arrays of different sizes. Refer to sets of cells by enclosing indices in smooth parentheses, (). Access the contents of cells by indexing with curly braces, {}. For more information, see Access Data in a Cell Array.

Functions

cell Create cell array
cell2mat Convert cell array to numeric array
cell2struct Convert cell array to structure array
cell2table Convert cell array to table
celldisp Display cell array contents
cellfun Apply function to each cell in cell array
cellplot Graphically display structure of cell array
cellstr Create cell array of strings from character array
iscell Determine whether input is cell array
iscellstr Determine whether input is cell array of strings
mat2cell Convert array to cell array with potentially different sized cells
num2cell Convert array to cell array with consistently sized cells
strjoin Join strings in cell array into single string
strsplit Split string at specified delimiter
struct2cell Convert structure to cell array
table2cell Convert table to cell array
Was this topic helpful?