ver - Version information for MathWorks products

GUI Alternatives

As an alternative to the ver function, select Help > About in any tool that has a Help menu.

Syntax

ver
ver product
v = ver('product')

Description

ver displays a header containing the current MathWorks product family version number, license number, operating system, and version of Sun Microsystems JVM software for the MATLAB product. This is followed by the version numbers for MATLAB, Simulink, if installed, and all other installed MathWorks products.

ver product displays the MathWorks product family header information followed by the current version number for product. The name product corresponds to the directory name that holds the Contents.m file for that product. For example, Contents.m for the Control System Toolbox product resides in the control directory. You therefore use ver control to obtain the version of this toolbox.

v = ver('product') returns the version information to structure array, v, having fields Name, Version, Release, and Date.

Remarks

To use ver with your own product, the first two lines of the Contents.m file for the product must be of the form

     % Toolbox Description
     % Version xxx dd-mmm-yyyy

Do not include any spaces in the date and use a two-character day; that is, use 02-Sep-2008 instead of 2-Sep-2008.

Examples

Using R2009a, return version information for MathWorks products, and specifically the Control System Toolbox product by typing

ver control

MATLAB returns

-------------------------------------------------------------------------------------
MATLAB Version 7.8.0.3012 (R2009a)
MATLAB License Number: [not shown]
Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 3)
Java VM Version: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
-------------------------------------------------------------------------------------
Control System Toolbox                                Version 8.3        (R2009a)

Return version information for the Control System Toolbox product in a structure array, v.

v = ver('control')
v = 
      
       Name: 'Control System Toolbox'
    Version: '8.3'
    Release: '(R2009a)'
       Date: '24-Jan-2009'

Display version information for MathWorks 'Real-Time' products:

v = ver;
for k=1:length(v)
   if strfind(v(k).Name, 'Real-Time')
      disp(sprintf('%s, Version %s', ...
                    v(k).Name, v(k).Version))
   end
end

Real-Time Windows Target, Version 3.3
Real-Time Workshop, Version 7.3
Real-Time Workshop Embedded Coder, Version 5.3

See Also

computer, help, hostid, license, verlessthan, version, whatsnew

Help > Check for Updates in the MATLAB desktop.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS