Associate MATLAB data value with string key
function
setmcruserdata(key
, value
)
The
command
is part of the MATLAB® Runtime User Data interface API. function
setmcruserdata(key
, value
)
In C++:
mxArray *key = mxCreateString("ParallelProfile"); mxArray *value = mxCreateString("\usr\userdir\config.settings"); if (!setmcruserdata(key, value)) { fprintf(stderr, "Could not set MCR user data: \n %s ", mclGetLastErrorMessage()); return -1; }
In C:
mxArray *key = mxCreateString("ParallelProfile"); mxArray *value = mxCreateString("\usr\userdir\config.settings"); if (!mlfSetmcruserdata(key, value)) { fprintf(stderr, "Could not set MCR user data: \n %s ", mclGetLastErrorMessage()); return -1; }