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.

getContext

Class: mlreportgen.report.Report
Package: mlreportgen.report

Get report context value

Syntax

cvalue = getContext(report,key)

Description

cvalue = getContext(report,key) gets the report context value specified by the key. Use this method to retrieve report context information you have set previously using the setContext method. 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 mlreportgen.report.Report.

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

Output Arguments

expand all

Context value associated with specified key, returned as the value for that key.

Introduced in R2017b

Was this topic helpful?