Contenuto principale

setInformation

Add description of subcheck in Model Advisor analysis results

Description

setInformation(ftObj,text) is an optional method that inserts descriptive content immediately after the subcheck title in the report generated by the formatting template object ftObj. Use this method to provide additional information or context about the subcheck.mw_a3a90a37-5308-4081-a382-d157fe61a993

example

Examples

collapse all

This example shows how to create a Model Advisor list template object, set a subtitle, and add descriptive information about a subcheck.

Create a formatting template object.

ft = ModelAdvisor.FormatTemplate("ListTemplate");

Specify a subtitle for the subcheck.

setSubTitle(ft,"Check for constructs in the model that are not supported when generating code");

Insert additional descriptive information immediately after the subcheck title.

setInformation(ft,"Identify blocks that should not be used for code generation.");

Input Arguments

collapse all

ModelAdvisor.FormatTemplate object, specified as a handle to the formatting template.

Information to display after the subcheck title. Specify this as either a character vector or string scalar containing descriptive text.

Example: ["Identify unconnected lines","Item 2"]

Version History

Introduced in R2009a