setmcruserdata
AssociateMATLAB数据值的关键
Description
void setmcruserdata(
associates the MATLAB®datakey
,value
)value
with the stringkey
in the currentMATLAB Runtimeinstance. If there is already avalue
associated with thekey
, it is overwritten.
This function is part of theMATLAB RuntimeUser Data interface API. It is available both in MATLAB and in deployed applications created withMATLAB Compiler™andMATLAB Compiler SDK™.
Examples
Store a cell array and associate it with the string'PI_Data'
in the current instance of theMATLAB Runtime.
value = {3.14159,'March 14th is PI day'};setmcruserdata('PI_Data', value);