(Not recommended) Get project file dependencies
Open the airframe project, create a project object and get a file.
sldemo_slproject_airframe; proj = simulinkproject; file = 'models/slproject_f14.slx'
Get the files required by the specified file.
files = listRequiredFiles(proj, file);
Project, specified as a project object. Use
simulinkproject to create a project object to manipulate a project at the
file— Path of file
Path of the file relative to the project root folder, including the file extension, specified as a character vector, an absolute file path or an instance of a project file object. The file must be within the root folder.
file— Project file
Required files, returned as a cell array of character vectors.
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.