Main Content

matlab.mpm.PackageFolder

Package member folder

Since R2024b

    Description

    Use matlab.mpm.PackageFolder objects to specify package member folders for a matlab.mpm.Package object. A matlab.mpm.PackageFolder object stores package member folder information.

    Creation

    Description

    pkgfolder = matlab.mpm.PackageFolder(path) creates a package folder object with the specified path relative to the root folder. This object stores information for matlab.mpm.Package object metadata and does not actually create a folder.

    example

    Input Arguments

    expand all

    Folder path, specified as a string scalar or character vector containing the package member folder path relative to the package root folder. For example, for a package located at C:\MyCode\MyPackage, specify the member folder path as "MyPackage\MySubfolder".

    This argument sets the Path property.

    Properties

    expand all

    Folder path, specified as a string scalar containing the package member folder path relative to the package root folder.

    Examples

    collapse all

    Create a matlab.mpm.PackageFolder object that represents a package member folder NewFolder located in the MyPackage root folder.

    pkgfolder = matlab.mpm.PackageFolder("MyPackage/NewFolder")
    pkgfolder = 
    
      PackageFolder with properties:
    
        Path: "MyPackage/NewFolder"

    Version History

    Introduced in R2024b