| MATLAB Function Reference | ![]() |
As an alternative to the ver function, select About from the Help menu in any product that has a Help menu.
ver
ver product
v = ver('product')
ver displays a header containing the current MathWorks product family version number, license number, operating system, and Java™ VM version for MATLAB. 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 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.
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-yyyyDo not include any spaces in the date and use a two-character day; that is, use 02-Sep-2002 instead of 2-Sep-2002.
Return version information for the Control System Toolbox™ by typing
ver control
MATLAB® returns
------------------------------------------------------------------------------------- MATLAB Version 7.3.0.22078 (R2006b) MATLAB License Number: unknown Operating System: Microsoft Windows XP Version 5.1 (Build 2600: Service Pack 2) Java VM Version: Java 1.5.0_07 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode ------------------------------------------------------------------------------------- Control System Toolbox Version 7.1 (R2006b)
Return version information for the Control System Toolbox in a structure array, v.
v = ver('control')
v =
Name: 'Control System Toolbox'
Version: '7.1'
Release: '(R2006b)'
Date: '19-Sep-2006'Display version information on 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.1
Real-Time Workshop, Version 7.1
Real-Time Workshop Embedded Coder, Version 5.1
help, hostid, license, version, whatsnew
Help > Check for Updates in the MATLAB desktop.
![]() | vectorize | verctrl | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |