Main Content

slreportgen.utils.isModelCompiled

R2026b

Check if model is compiled

Description

tf = slreportgen.utils.isModelCompiled(model) tests whether the input Simulink® model is compiled.

example

Examples

collapse all

Check whether the sf_car model is compiled. The slreportgen.utils.isModelCompiled function returns 0 (false) because the model is not compiled.

openExample("sf_car")
tf = slreportgen.utils.isModelCompiled("sf_car")
tf = logical
   0

Input Arguments

collapse all

Model to check for being compiled, specified as a string or character array of the model path or handle.

Output Arguments

collapse all

Whether model is compiled, returned as 1 (true) if the model is compiled. Otherwise, it returns 0 (false).

Version History

Introduced in R2018b