Remove folder from金宝appproject path
removePath(project, folder)
example
removePath(project,folder)removes a folder in a Simulink®project from the current project path. The folder must be in the project.
removePath(project,folder)
project
folder
collapse all
sldemo_slproject_airframe; project = simulinkproject;
Create a new folder.
folderpath = fullfile(project.RootFolder,'folder'); mkdir(filepath);
Add this new folder to the project.
projectFile = addFile(project,folderpath);
Add the new folder to the project path.
folderpath = addPath(project,folderpath);
Remove the new folder from the project path.
removePath(project,folderpath)
Project, specified as a project object. Usesimulinkprojectto create a project object to manipulate a Simulink project at the command line.
simulinkproject
Path of the folder to remove relative to the project root folder, specified as a character vector. The folder must be within the root folder.
Example:models/myfolder
addPath|simulinkproject
addPath
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office
Get trial now