Using the C++ Math Library    

Cell Arrays

MATLAB cell arrays provide a way to group together a collection of dissimilar MATLAB arrays.

The following table lists the MATLAB C++ Math Library routines to create cell arrays and perform basic tasks with them. The sections that follow provide more detail about using these routines. For more detailed information about using cell arrays, see Using MATLAB. For more detailed information about any of the library routines, see the MATLAB C++ Math Library Reference.

Table 3-4: Cell Array Routines
To ...
Use ...
Create a multidimensional array of empty cells.
cell()

Create a cell array of strings from a character array
cellstr()
Create a cell array by concatenating existing arrays
cellhcat()
Convert a structure into a cell array
struct2cell()
Convert a numeric array into a cell array
num2cell()
View the contents of each cell in a cell array
celldisp()


 Creating MATLAB Character Arrays Creating Cell Arrays