Contenido principal

setSubscript

Set text as subscript in Model Advisor analysis results

Description

setSubscript(textObj,submode) formats the text in textObj as subscript, based on the value of submode.

Note

The setSubscript function formats Model Advisor analysis results with Simulink® Check™. For more information, see Simulink Check.

For information on how to format text in MATLAB®, see Formatting Text.

example

Examples

collapse all

Create a Model Advisor text object with some sample text.

t1 = ModelAdvisor.Text("This is some text");

Set the text to appear as subscript.

setSubscript(t1,true);

Input Arguments

collapse all

Text for the Model Advisor output, returned as a ModelAdvisor.Text object.

Subscript setting, specified as a numeric or logical 1(true) or 0(false). If submode is 1(true), then the text from textObj is formatted as subscript. If submode is 0(false), then the text is not formatted as subscript.

Data Types: logical

Version History

Introduced in R2007b