Main Content

slreportgen.utils.isModelReferenceBlock

Check if object is Model block

Description

tf = slreportgen.utils.isModelReferenceBlock(obj) tests whether the input obj is a Model block.

example

Examples

collapse all

load_system('sf_car')
tf = slreportgen.utils.isModelReferenceBlock('sf_car/Engine')
tf = logical
   0

In this case, the Engine subsystem in the sf_car model is not a Model block.

Input Arguments

collapse all

Object to check for being a Model block, specified as a string or character array of the Simulink® object path or handle.

Output Arguments

collapse all

Whether input is a Model block, returned as 1 (true) if the input is a Model block. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b