matlab.project.rootProject
Get root project
Description
gets
the root project of the currently loaded project and returns a project object that
you can use to manipulate the root project programmatically. If no project is open,
MATLAB® returns an empty array. Use
proj
= matlab.project.rootProjectmatlab.project.rootProject
when working with referenced
projects.
To get the project which currently has context, for example, if the project is
running a shortcut, startup file, or shutdown file for a referenced project, use
currentProject
instead.
For more information about referenced projects, see Componentize Large Projects
Examples
Output Arguments
Version History
Introduced in R2019a