user-data

Associate MATLAB data value with string key

Syntax

--user-data KEY VALUE

Description

user-data associates MATLAB® data value with key string. KEY and VALUE are strings. Use the double quotes (") character around strings with spaces. The backslash (\) character is the escape character and is used to insert double quotes or backslash characters: \" \\. The application can retrieve the data value by using getmcruserdata(key).

Parameters

KEY VALUE

MATLAB value to be associated with key.

Examples

Set user data with parallel profile settings.

--user-data ParallelProfile c:\\MPS\\myprofile.settings

Use quotes.

--user-data MyValue "Quoted string with escaped \"quotes\" and \\backslash."

Introduced in R2016a

Was this topic helpful?