currentProject

Syntax

Description

proj = currentProject gets the currently
open project, and returns a project object proj 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 rootProject instead. See Check if Project Is Loaded.

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.