Simulink Reference    
disp

Display text on the icon of a masked subsystem.

Syntax

Description

disp(text) displays text centered on the icon where text is any MATLAB expression that evaluates to a string.

disp(text, 'texmode', 'on') allows you to use TeX formatting commands in text. The TeX formatting commands in turn allow you to include symbols and Greek letters in icon text. See Mathematical Symbols, Greek Letters, and Tex

Characters" in the MATLAB documentation for information on the TeX formatting commands supported by Simulink.

Examples

The following command

draws the equation that appears on this masked block icon.

See Also


  Mask Icon Drawing Commands dpoly