Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB Compiler   

mclGetMCRUserData - Retrieve MATLAB data associated with string key of MCR instance uniquely identified by mcrID

Synopsis

extern "C"
mxArray *mclGetMCRUserData(
    long mcrID, 
    const char *key
);

Description

This external C function retrieves the MATLAB data associated with the string key of an MCR instance uniquely identified by mcrID. mclGetMCRUserData returns an empty matrix if no data has been associated with the specified key. The returned mxArray is a shared copy of the mxArray stored in the user data table. Dispose of this shared copy properly by calling mxDestroyArray.

This command is part of the MCR User Data interface API. For information about this function, as well as complete examples of usage, see Improving Data Access Using the MCR User Data Interface.

Example

mxArray *value = mclGetMCRUserData(mcrID, 
                   "ParallelConfigurationFile");

See Also

mclSetCmdLineUserData, mclSetMCRUserData

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS