Get project file dependencies
files = listRequiredFiles(proj,file)
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(project, file);
Project, specified as a project object. Use
simulinkproject to create a project
object to manipulate a Simulink® Project at the command line.
file— Path of file
Path of the file to add 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.