Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 Interpreter 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

| |

Introduced in R2007a

Was this topic helpful?