Previous: Lists, Up: Containers


7.2 Cell Arrays

— Built-in Function: cell (x)
— Built-in Function: cell (n, m)

Create a new cell array object. If invoked with a single scalar argument, cell returns a square cell array with the dimension specified. If you supply two scalar arguments, cell takes them to be the number of rows and columns. If given a vector with two elements, cell uses the values of the elements as the number of rows and columns, respectively.

— Built-in Function: cellstr (string)

Create a new cell array object from the elements of the string array string.

— Built-in Function: iscell (x)

Return true if x is a cell array object. Otherwise, return false.