Icon Editor
R2026bDescription
Use the Icon Editor to create and edit masked block icons in a graphical environment. You can create block icons that change when you modify the underlying block, such as by changing parameter values or resizing the block.
Using Icon Editor, you can:
Create icons visually using drawing tools, preset shapes, text, images, and alignment aids, such as grids, smart guides, and rulers.
Use Parts to render multiple variations of the same block.
Show or hide specific elements in the icon based on conditions derived from block parameters or mask parameters.
Dynamically position each element in the icon relative to the position of other elements on the canvas, or based on parameter values.
Preview the icon on the Simulink® canvas in various scenarios, such as when horizontally stretching, flipping, or scaling.
You can also create icons by using a script. In the Icon tab of the Mask Editor toolstrip, in the Authoring Mode section, click Drawing Commands. For more information, see Mask Icon Drawing Commands.
Icon Editor Panes
The Icon Editor is organized into these panes to help you design and customize icons in a graphical environment:
Toolstrip — Use the Icon tab of the toolstrip of Mask Editor to manage icon settings, file operations, and canvas behavior. These options let you configure how your icon is stored, displayed, and aligned within the editor.
Tools Pane — The Tools pane appears on the left side of the Icon Editor. Use the Tools pane to create custom icons by using basic shapes, paths, equations, and other tools.
Element Browser Pane — The Element Browser pane appears on the left side of the Icon Editor. Use the Element Browser pane to assign unique names to elements, hide or show them while you make modifications, lock or unlock their positions, arrange elements within groups, delete unwanted elements, and control the stack order to determine how elements overlay one another.
Canvas — Use the canvas to visually arrange and edit the graphical elements of your block icon.
Icon Properties Pane — The Icon Properties pane appears on the right side of the Icon Editor. Use the Icon Properties pane to view and edit specific attributes of an icon, such as size and visibility conditions.
Element Properties Pane — When you select an element in the canvas, the Element Properties pane appears on the right side of the Icon Editor. Use the Element Properties pane to modify the visual characteristics of the selected element, such as its format and behavior in the Simulink Editor.
Key Terminology
Here are some commonly used terms in the Icon Editor:
Element — Any single graphical object, such as a line, text, shape, or image that can be placed on the icon editor canvas.
Port — A visual reference for block input or output connections, used to align graphical elements or position text labels. Adding or removing ports in the Icon Editor does not add or remove them in a Simulink block.
Group — A collection of elements combined into a single unit you can select for easier moving, resizing, or applying shared properties.
Open the Icon Editor
To create and edit icons for masked blocks in a graphical environment:
On the Simulink canvas, right-click the block for which you want to create or edit the icon. If the block does not have a mask, select Create Mask. If a mask already exists, select Edit Mask. The Mask Editor opens.
Go to the Icon tab of the Mask Editor.
Examples
Parameters
Version History
Introduced in R2022b




















