User`s guide
4 Using MWArra y Classes
Constructing an MWCellArray
Use the tables in this section to construct an MWCellArray from a particular
Java data type. See the examples at the end of this section for more help:
Constructing an Empty Cell Array. To construct an empty 0-by-0 MATLAB
cell array, use
MWCellArray();
To construct an MWCellArray object with the specified dimensions, use
MWCellArray(int[] dims);
To construct an MWCellArray object with the specified number of rows and
columns, use
MWCellArray(int rows, int cols);
Input Parameters
dims
Array of dimension sizes
rows
Number of row s
cols
Number of columns
Exceptions
The MWCellArray constructor throws the following exception:
NegativeArraySizeException
The specified dims para m eter is negative.
4-136