(Not recommended) Determine if project is loaded
Open the airframe project and create a project object.
sldemo_slproject_airframe; proj = simulinkproject;
Find out if the project is still loaded.
loaded = isLoaded(proj)
loaded = 1
loaded— Loaded status
Project loaded status, returned as true (
1) if the
project is loaded.
Not recommended starting in R2019a
Starting in R2019a, instead of
simulinkproject and related functions,
functions in MATLAB®. The Simulink® project API will continue to be supported, but, after R2019a, new features
might be available only if you use the new MATLAB project API. There are no plans to remove the Simulink project API at this time.
The new MATLAB project API is part of the R2019a functionality enabling you to use projects in MATLAB, with or without Simulink. You can now share projects with users who do not have Simulink.