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
Properties
Examples
More About
Tips
Equality between
mpm.matlab.Version
objects follows Semantic Versioning 2.0.0 standards and ignores theBuild
property. For example, compare two version objects with differentBuild
values:v1 = matlab.mpm.Version(1,2,3,Build="a"); v2 = matlab.mpm.Version(1,2,3,Build="b"); v1 == v2
ans = logical 1
Version History
Introduced in R2024b