Main Content

removeStartupFile

Remove startup file from project startup list

Description

example

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

Examples

collapse all

Open the Times Table App project. UsecurrentProjectto create a project object from the currently loaded project.

matlab.project.example.timesTable proj = currentProject;

Automatically run theTimesTableapp when the project opens by making therunTimesTable.mfile 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 amatlab.project.Projectobject. UsecurrentProjectto 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