Main Content

matlab.system.mixin.CustomIcon class

Package: matlab.system.mixin

Custom icon mixin class

The matlab.system.mixin.CustomIcon mixin will be removed in a future release. You no longer need to inherit from this mixin in your System object. The associated getIcon method has been moved to the matlab.System class.

Description

matlab.system.mixin.CustomIcon is a class that specifies the getIcon method. This method customizes the name of the icon used for the System object implemented through a MATLAB System (Simulink) block.

To use this method, you must subclass from this class in addition to the matlab.System base class. Type the following syntax as the first line of your class definition file, where ObjectName is the name of your object:

classdef ObjectName < matlab.system &...
    matlab.system.mixin.CustomIcon

The matlab.system.mixin.CustomIcon class is a handle class.

Compatibility Considerations

expand all

Not recommended starting in R2020a

Introduced in R2017a