MATLAB Application Program Interface
  Go to function:
    Search    Help Desk 
mxGetCell    Examples   See Also

Get a cell's contents

C Syntax

Arguments

array_ptr
  Pointer to a cell mxArray.

index
  The number of elements in the cell mxArray between the first element and the desired one. See mxCalcSingleSubscript for details on calculating an index.

Returns

A pointer to the ith cell mxArray, if successful; otherwise, returns NULL. Causes of failure include:

Description

Call mxGetCell to get a pointer to the mxArray held in the indexed element of the cell mxArray.

Note:  Changing data contained within the cell may cause unpredictable results.

Example

See explore.c in the mex subdirectory of the examples directory.

See Also

mxCreateCellArray, mxIsCell, mxSetCell



[ Previous | Help Desk | Next ]