| MATLAB Application Program Interface | Search  Help Desk |
| mexGetMatrix |
Copies an mxArray from the caller's workspace
Fortran Syntax
integer*4 function mexGetMatrix(name) character*(*) name
Returns
A pointer to a newly allocatedmxArray if successful, 0 otherwise.
Arguments
namemxArray to get from workspace.
Description
mexGetMatrix reads the named mxArray from the caller's workspace, and returns a pointer to a newly allocated mxArray or 0 if the attempt fails.