Main Content
slreportgen.utils.hasDiagram
Description
returns tf
= slreportgen.utils.hasDiagram(obj
)1
(true
) if the input object has a diagram and
0
(false
) if the object does not have a
diagram.
These types of objects have diagrams:
Simulink® block diagram
Simulink graphical subsystem
Stateflow® chart
Stateflow Simulink function
Subcharted Stateflow state
Subcharted Stateflow function
Subcharted Stateflow box
You can use this function to check if an object has a diagram before you try to use the
object with an slreportgen.report.Diagram
reporter.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b