| MATLAB Application Program Interface | Search  Help Desk |
| mexPutMatrix |
Writes an mxArray to the caller's workspace
integer*4 function mexPutMatrix(mp) integer*4 mpmp
mxArray.
0 if successful, and 1 if an error occurs.
mexPutMatrix writes mxArray mp to the caller's workspace. If the mxArray does not exist in the workspace, it is created. If an mxArray with the same name already exists in the workspace, the existing mxArray is replaced with the new one.