addStartupFile(proj,file)
adds a startup file to the specified project. Startup files automatically run (if
they are .m and .p files), load (if they are
.mat files), or open (if they are Simulink® models) when you open the project.
Project, specified as a matlab.project.Project object.
Use currentProject to create a project object from the currently
loaded project.
file — Path of file character vector | string scalar
Path of the MATLAB® file to add, including the file extension, specified as a
character vector or string scalar. Specify the path relative to the project
root folder. The file must be within the project root folder.