External Interfaces/API Reference    
mxGetData

Get pointer to data

Fortran Syntax

Arguments

pm
   Pointer to an mxArray.

Returns

The address of the first element of the real data, on success. Returns 0 if there is no real data or if there is an error.

Description

Call mxGetData to get a pointer to the real data in the mxArray that pm points to. To copy values from the pointer to Fortran, use one of the mxCopyPtrTo* functions in the manner shown here.

mxGetData is equivalent to using mxGetPr.

See Also

mxGetImagData, mxSetData, mxSetImagData, mxCopyPtrToReal4, mxCopyPtrToReal8, mxGetPr


  mxGetClassName mxGetDimensions