Main Content

setUnderlined

Set text as underlined in Model Advisor analysis results

Description

setUnderlined(textObj,umode) specifies whether the text in textObj is underlined, based on the value of umode.

Note

The setSuperscript 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 message is underlined.");

Set the text to appear underlined.

setUnderlined(t1,true)

Input Arguments

collapse all

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

Underline setting, specified as a numeric or logical 1(true) or 0(false). If umode is 1(true), then the text from textObj is underlined. If umode is 0(false), then the text is not underlined.

Data Types: logical

Version History

Introduced in R2007b