currentProject
Get current project
Syntax
Description
gets the currently
open project, and returns a project object proj
= currentProjectproj
that you can
use to manipulate the project programmatically. When the currently open project is
running a shortcut, startup file, or shutdown file for a referenced project,
currentProject
returns the object for the referenced
project instead. If no project is open, MATLAB® displays an error. To programmatically check if any project is loaded,
use matlab.project.rootProject
instead. See Check if Project Is Loaded.
For more information about working with projects programmatically, see Create and Edit Projects Programmatically.
Examples
Output Arguments
Version History
Introduced in R2019a