Draw Mask Icon Using Mask Drawing Commands
Use mask drawing commands to customize the appearance and functionality of block masks.This example shows how to use drawing commands to draw mask icons. In the Mask Editor, select drawing commands in the Drawing Commands pane of the Icon tab. Mask Editor prints an example of the command that you can edit to customize to your needs.
Available mask drawing commands are:
color
— Change drawing color of subsequent mask icon drawing commands.
disp
— Display text on the masked icon.
dpoly
— Display transfer function on masked icon.
droots
— Display transfer function on masked icon.
fprintf
— Display variable text centered on masked icon.
image
— Display image on block mask icon.
patch
— Draw colored shape on block mask icon.
plot
— Draw graph connecting series of points on masked block icon.
port_label
— Display port label on masked subsystem icon.
text
— Display text at specific location on masked icon.
block_icon
— Promote block icon image to masked Subsystem block.
The Icon tab of the Mask Editor contains a list of controls that helps to specify attributes on the mask icon. See Properties for more information on the properties.
Explore the Model
This example model contains Subsystem blocks that demonstrates the mask icon drawing commands.
open_system("slexMaskDrawingExamples.slx")