Get the handles of all loaded models in the current
Simulink® session with unsaved changes, excluding libraries.
Get the handles of all loaded models, excluding libraries.
h = Simulink.allBlockDiagrams("model");
From the output, extract the handles of the models that have unsaved
changes. Use the bdIsDirty function to check whether a
model has unsaved changes. If a model has unsaved changes, the
bdIsDirty function outputs a value of
1. If not, the bdIsDirty
function outputs 0.
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.