Documentation

removeStartupFile

Remove startup file from project startup list

Syntax

removeStartupFile(proj, file)

Description

example

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

Examples

collapse all

Open the airframe project and create a project object.

sldemo_slproject_airframe
proj = simulinkproject;

Create a new file.

filepath = fullfile(proj.RootFolder, 'new_model.slx')
     new_system('new_model');
     save_system('new_model', filepath)

Add the new model to the project.

 projectFile = addFile(proj, filepath)

Automatically open the model when the project opens, by making it a startup file.

addStartupFile(proj, filepath);

Remove the startup file.

removeStartupFile(proj, filepath);

Input Arguments

collapse all

Project, specified as a project object. Use simulinkproject to create a project object to manipulate a Simulink® Project at the command line.

Path of the file to add relative to the project root folder, including the file extension, specified as a character vector. The file must be within the root folder.

Example: ‘models/myModelName.slx’

Introduced in R2017b

Was this topic helpful?