Main Content

setSuperscript

Set text as superscript in Model Advisor analysis results

Description

setSuperscript(textObj,supermode) formats the text in textObj as superscript, based on the value of supermode.

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 is some text");

Set the text to appear as superscript.

setSuperscript(t1,true);

Input Arguments

collapse all

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

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

Data Types: logical

Version History

Introduced in R2007b