Home > atmlab > handy > nversion.m

nversion

PURPOSE ^

NVERSION Matlab version as a number.

SYNOPSIS ^

function v = nversion

DESCRIPTION ^

 NVERSION   Matlab version as a number.

    The function returns the two most important version levels as a numer.
    For example, revision 13 (6.5.0.180913a) is returned as 6.05, and
    version 7.10.0.499 as 7.10.

 FORMAT   v = nversion
        
 OUT   v   Version number.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

nversion.m

SOURCE CODE ^

0001 % NVERSION   Matlab version as a number.
0002 %
0003 %    The function returns the two most important version levels as a numer.
0004 %    For example, revision 13 (6.5.0.180913a) is returned as 6.05, and
0005 %    version 7.10.0.499 as 7.10.
0006 %
0007 % FORMAT   v = nversion
0008 %
0009 % OUT   v   Version number.
0010 
0011 % 2002-12-14   Created by Patrick Eriksson.
0012 
0013 
0014 function v = nversion
0015 
0016 
0017 s = version;
0018 
0019 l = sscanf( s, '%d.%d' );
0020 
0021 v = l(1) + l(2)/1e2;

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005