Main Content

PackageIdentifier

Create package identifier

Since R2026a

    Description

    pkgid = PackageIdentifier(pkg) creates a package identifier containing the identifying information for the specified package object.

    example

    Examples

    collapse all

    Create a package identifier for the package object pkg.

    pkg = mpmlist(Name="MyPackage");
    pkgID = PackageIdentifier(pkg)
    pkgID = 
    
      PackageIdentifier with properties:
    
           Name: "MyPackage"
        Version: 1.1.0 (1×1 Version)
             ID: "e6e98298-f0d9-4551-a1fd-1c841989c092"

    Input Arguments

    collapse all

    Input package, specified as a matlab.mpm.Package object.

    Output Arguments

    collapse all

    Package identifier, returned as a matlab.mpm.PackageIdentifier object.

    Version History

    Introduced in R2026a