Add referenced project to project
Open the Times Table App project. Use
to create a project object from the currently loaded project.
matlab.project.example.timesTable proj = currentProject;
Create a blank project.
projectToReference = matlab.project.createProject();
Reload the first project and add a reference to the new blank project. Reloading the first project is necessary because since only one project can be open at one time, MATLAB® unloads the first project before creating and opening the new blank project.
Project, specified as a
currentProject to create a project object from the currently
referenceFolder— Path of referenced project folder
Path of the referenced project folder, specified as a character vector or string scalar. Specify the path relative to the project root folder. The folder must be within the project root folder.
type— Type of reference
Type of reference, specified as
"relative" if your
project hierarchy has a well-defined root relative to your project root, for
example, a folder under source control. Specify
"absolute" if the project you want to reference is in
a location accessible to your computer, for example, a network drive.
projreference— Referenced project
Referenced project, returned as a
containing information about the referenced project.