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
Run the following command to access the supporting files used in this example.
openExample('rptgenext/SimulinkReportGeneratorFilesExample');
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
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes 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