Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

setmcruserdata

Associate MATLAB data value with a key

Syntax

function setmcruserdata(key, value)

Description

The function setmcruserdata(key, value) command is part of the MATLAB® Runtime User Data interface API.

Examples

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;
}

Introduced in R2008a

Was this topic helpful?