Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

disp - Display text on masked subsystem icon

Syntax

disp(text)
disp(text, 'texmode', 'on')

Description

disp(text) displays text centered on the block icon. 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 software.

Examples

The following command

disp('{\itEquation:}  \alpha^2 + \beta^2 \rightarrow \gamma^2, 
\chi, \phi_3 = {\bfcool}', 'texmode','on')

draws the equation that appears on this masked block icon.

See Also

fprintf, port_label, text

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS