| Using the C Math Library | ![]() |
Referencing a Subset of the Contents of a Cell
To obtain a subset of a cell's contents, concatenate indexing expressions. For example, to obtain element (2,2) from the array in cell N{1,1}, use an indexing string "{?,?}(?,?)" that concatenates an index that references the entire contents of a cell with an index that references a portion of those contents.
mlfAssign(&d,
mlfIndexRef(N, "{?,?}(?,?)",
mlfScalar(1), mlfScalar(1),
mlfScalar(2), mlfScalar(2)));
d = N{1,1}(2,2) performs the same operation in MATLAB.
Note that d is a scalar array, not a cell array.
| Referencing the Contents of a Cell | Indexing Nested Cell Arrays | ![]() |