Help Center
Check if object is model
Since R2020b
tf = slreportgen.utils.isModel(obj)
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.
tf
obj
1
true
0
false
example
collapse all
load_system("vdp"); tf = slreportgen.utils.isModel("vdp")
tf = logical 1
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.
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.
Introduced in R2020b
slreportgen.utils.getModelHandle | slreportgen.utils.isModelCompiled | slreportgen.utils.isModelLoaded
slreportgen.utils.getModelHandle
slreportgen.utils.isModelCompiled
slreportgen.utils.isModelLoaded
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office