检查matlab版本

  %-- Checking the Matlab version and if the specified Toolbox is available

   a = ver;

  % ud.Spline = 0;

   i = 1;

    

   while ( (i <= size(a,2)) && (~strcmp(a(i).Name,'MATLAB')) )

       i = i+ 1;

   end

   idx = find(a(i).Version == '.');

   v1 = str2double(a(i).Version(1:idx-1));        v2 = str2double(a(i).Version(idx+1:end));

   if ( (v1 >= 7) && (v2 >= 6) )                               %if version >7.6(R2008a)

       ud.Version = 1;

   else

       ud.Version = 0;

   end



Release history

Version[19] Release name Year Release Date Notes
MATLAB 1.0   1984  
MATLAB 2   1986  
MATLAB 3   1987  
MATLAB 3.5   1990   Ran on MS-DOS but required at least a 386 processor. Version 3.5m required math coprocessor
MATLAB 4   1992  
MATLAB 4.2c R7 1994   Ran on Windows 3.1. Required a math coprocessor
MATLAB 5.0 R8 1996 December, 1996
MATLAB 5.1 R9 1997 May, 1997
MATLAB 5.1.1 R9.1  
MATLAB 5.2 R10 1998 March, 1998
MATLAB 5.2.1 R10.1  
MATLAB 5.3 R11 1999 January, 1999
MATLAB 5.3.1 R11.1 November, 1999
MATLAB 6.0 R12 2000 November, 2000
MATLAB 6.1 R12.1 2001 June, 2001
MATLAB 6.5 R13 2002 July, 2002
MATLAB 6.5.1 R13SP1 2003  
MATLAB 6.5.2 R13SP2  
MATLAB 7 R14 2004 June, 2004
MATLAB 7.0.1 R14SP1 October, 2004
MATLAB 7.0.4 R14SP2 2005 March 7, 2005
MATLAB 7.1 R14SP3 September 1, 2005
MATLAB 7.2 R2006a 2006 March 1, 2006
MATLAB 7.3 R2006b September 1, 2006 HDF5-based MAT-file support
MATLAB 7.4 R2007a 2007 March 1, 2007
MATLAB 7.5 R2007b September 1, 2007 Last release for Windows 2000 and PowerPC Mac. License Server support for Windows Vista[20]
MATLAB 7.6 R2008a 2008 March 1, 2008
MATLAB 7.7 R2008b October 9, 2008
MATLAB 7.8 R2009a 2009 March 6, 2009 First release for 32-bit & 64-bit Windows 7.
MATLAB 7.9 R2009b September 4, 2009 First release for Intel 64-bit Mac, and last for Solaris SPARC.
MATLAB 7.9.1 R2009bSP1 2010 April 1, 2010  
MATLAB 7.10 R2010a March 5, 2010 Last release for Intel 32-bit Mac.
MATLAB 7.11 R2010b September 3, 2010
MATLAB 7.11.1 R2010bSP1 2011 March 17, 2011
MATLAB 7.12 R2011a April 8, 2011  
MATLAB 7.13 R2011b September 1, 2011

你可能感兴趣的:(检查matlab版本)