matlab.mpm.Version
Description
A matlab.mpm.Version object stores package version information.
You can use a version object to limit searches for packages using mpmsearch.
Creation
Syntax
Description
creates a package version object corresponding to the specified string.
pkgver = matlab.mpm.Version(versionstr)versionstr must follow semantic version syntax.
creates a package version object with the specified prerelease version.pkgver = matlab.mpm.Version(___,Prerelease=prver)
Input Arguments
Name-Value Arguments
Properties
Examples
More About
Tips
Equality between
mpm.matlab.Versionobjects follows Semantic Versioning 2.0.0 standards and ignores theBuildproperty. For example, compare two version objects with differentBuildvalues:v1 = matlab.mpm.Version(1,2,3,Build="a"); v2 = matlab.mpm.Version(1,2,3,Build="b"); v1 == v2
ans = logical 1
Extended Capabilities
Version History
Introduced in R2024b