This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.



Set report context value




setContext(report,key,cvalue) stores the context value (cvalue) specified by the key on the report object. You can then use the getContext method to retrieve the value. The context values and keys are stored in a containers.Map object.

Input Arguments

expand all

Report, specified as a report object. To create the report input, use

Key to associate with context value, specified as a numeric, real scalar, string, or cell array.

Context value associated with specified key, specified as any type of value.

Introduced in R2017b