Main Content

isLoaded

Determine if project is loaded

Description

example

TF = isLoaded(proj) determines if the specified project is loaded.

Examples

collapse all

Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.

matlab.project.example.timesTable
proj = currentProject;

Find out if the project is still loaded.

loaded = isLoaded(proj)
loaded =

     1

Close the project and check again.

close(proj)
loaded = isLoaded(proj)
loaded =

     0

Input Arguments

collapse all

Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.

Output Arguments

collapse all

Load status, returned as 1 (true) if the project is loaded.

Data Types: logical

Introduced in R2019a