Help CenterHelp Center
Check if object is model
Since R2020b
tf = slreportgen.utils.isModel(obj)
example
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
collapse all
load_system("slrgex_vdp"); tf = slreportgen.utils.isModel("slrgex_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
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office