Main Content

removeStartupFile

Remove startup file from project startup list

Description

removeStartupFile(proj,file) removes the specified startup file from the startup list in the specified project.

example

Examples

collapse all

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

openExample("matlab/TimesTableProjectExample")
proj = currentProject;

Automatically run the TimesTable app when the project opens by making the runTimesTable.m file a startup file.

filepath = fullfile("utilities","runTheseTests.m");
addStartupFile(proj,filepath);

Remove the startup file. The app no longer runs automatically when the project opens.

removeStartupFile(proj, filepath);

Input Arguments

collapse all

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

Path of the file to remove, including the file extension, specified as a character vector or string scalar. Specify the path relative to the project root folder. The folder must be within the root folder.

Version History

Introduced in R2019a