No BSD License
Highlights from
vercmp
|
|
| File Information |
| Description |
I use it to compare version numbers of data stored by different versions of my software for compatibility reasons.
function result = vercmp(ver1, varargin)
% Compares two version numbers.
%
% Example: 7.4.0.287
% major release.minor release.patch level.build
% Everything except the major release is optional.
%
% Arguments:
% ver1 - Version number one
% ver2 - Version number two; default: version cmd output
%
% Return values:
% result - Index of part which differs:
% 0 if equal
% > 0 if ver1 > ver2
% < 0 if ver1 < ver2
% NaN if ver1 | ver2 are not a version number
%
% Author: Johannes Kissel
% Last modified: 29.01.2008 |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 06 Feb 2008 |
Duane Hanselman
|
|
|
| 07 Feb 2008 |
Thomas Pieper
|
|
|
| 08 Feb 2008 |
Johannes Kissel
|
|
|
| 17 Dec 2010 |
Arthur
|
|
|
|
Contact us at files@mathworks.com