Main Content

slreportgen.utils.isModel

Check if object is model

Since R2020b

Description

tf = slreportgen.utils.isModel(obj) returns 1 (true) if the input object is a Simulink® model and 0 (false) if the object is not a model.

example

Examples

collapse all

load_system("vdp");
tf = slreportgen.utils.isModel("vdp")
tf = logical
   1

Input Arguments

collapse all

Object to check, specified as a handle to the object or as a character vector or string scalar that contains the Simulink path of the object.

Output Arguments

collapse all

Whether the input object is a model, returned as 1 (true) if the input object is a model or 0 (false) if the input object is not a model.

Version History

Introduced in R2020b