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.

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?