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

Get Icon Path for Stateflow Chart

Run the following command to access the supporting files used in this example.

openExample('rptgenext/SimulinkReportGeneratorFilesExample');
load_system('slrgex_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