| Contents | Index |
function setmcruserdata(key, value)
The function setmcruserdata(key, value) 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.
The MATLAB functions getmcruserdata and setmcruserdata can be dragged and dropped (as you would any other MATLAB file), directly to the deploytool GUI.
setmcruserdata('ParallelConfigurationFile','config.mat')mxArray *value = mxCreateString("/usr/userdir/config.mat");
if (!SetMCRUserData("ParallelConfigurationFile",
"/usr/userdir/config.mat") )
{
fprintf(stderr,
"Could not set MCR user data: \n %s ",
mclGetLastErrorMessage());
return -1;}

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |