Main Content

removeStartupFile

Remove file from project startup files

Description

removeStartupFile(proj,files) removes the specified files from the startup files 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 files to remove from startup, specified as a string array or cell array of character vectors.

Version History

Introduced in R2019a

expand all