Retrieve MATLAB array value associated with a given key
This function is part of the MATLAB Runtime User Data interface API. It is available both in MATLAB and in deployed applications created with MATLAB Compiler™ and MATLAB Compiler SDK™.
Get the magic square data associated with the string
'magic' in the current instance
of the MATLAB Runtime.
value = magic(3); setmcruserdata('magic', value); getmcruserdata('magic')
ans = 8 1 6 3 5 7 4 9 2
key— Key associated with MATLAB data
key is the MATLAB string with which MATLAB data
associated within the current instance of the
value— Value of MATLAB data
value is the MATLAB data
associated with input string
for the current instance of the MATLAB Runtime.