Help Center
Remove member folder from package
Since R2024b
removeFolder(pkg,folders)
removeFolder(pkg,folders) removes the specified member folders from the package and updates the Folders property of the package object. The package pkg must be in editable mode.
pkg
folders
Folders
example
collapse all
Create a package named MyPackage. Add a member folder named Classes to MyPackage.
MyPackage
Classes
pkg = mpmcreate("MyPackage","MyPackage"); mkdir("MyPackage/Classes") addFolder(pkg,"Classes") pkg.Folders
ans = PackageFolder with properties: Path: "Classes"
Remove Classes from the package.
removeFolder(pkg,"Classes") pkg.Folders
ans = 1×0 PackageFolder array with properties: Path
matlab.mpm.Package
Package, specified as a matlab.mpm.Package object.
matlab.mpm.PackageFolder
Member folders to remove, specified as a string array where each element is the path to a folder, or a matlab.mpm.PackageFolder array.
Introduced in R2024b
addFolder
addDependency
removeDependency
updateDependency
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
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
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other bat365 country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office