Main Content

slreportgen.utils.getDisplayIcon

Get Simulink or Stateflow icon file name

Description

example

displayIcon = slreportgen.utils.getDisplayIcon(obj) returns the icon image file name for a Simulink® handle or Stateflow® object.

Examples

collapse all

load_system("sf_car")
chart = find(slroot,"-isa","Stateflow.Chart", ...
    Name="shift_logic");
iconPath = slreportgen.utils.getDisplayIcon(chart);

Input Arguments

collapse all

Simulink handle or Stateflow object, specified as a string or character array of its path or handle.

Output Arguments

collapse all

Icon image file name, returned as a string.

Version History

Introduced in R2018b