Skip to content

Simple utility to manage version number as string.

Notifications You must be signed in to change notification settings

mattools/VersionNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

VersionNumber

Simple utility to manage version number as string.

Manages version number by storing major, minor and patch numbers, as well as an additional optional label given as char array.

Example:

% Create version number
v = VersionNumber(1, 0, 2);
% Display it in a readable form
char(v)
ans =
    '1.0.2'

% Another example with a label
v2 = VersionNumber(1, 2, 0, 'SNAPSHOT');
char(v2)
ans =
    '1.2.0-SNAPSHOT'

% Compare two version numbers
v2 > v
ans = 
   logical
    1

About

Simple utility to manage version number as string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages