You can put any kind of mxArray into a cell. In fact, you can even put another cell mxArray into a cell. Description Call mxSetCell to put the designated value into a particular cell of a cell mxArray . You can assign new values to unpopulated cells or overwrite the value of an existing cell. To do the latter, first use mxDestroyArray to free what is already there and then mxSetCell to assign the new value.
Examples See phonebook.c in the refbook subdirectory of the examples directory.
For an additional example, see mxcreatecellmatrix.c in the mx subdirectory of the examples directory.