| Contents | Index |
A header containing the current MATLAB product family version number, license number, operating system, and version of Java software for the MATLAB product.
The version numbers for MATLAB and all other installed MathWorks products.
The license numbers for all installed MathWorks products if they differ from the MATLAB license number listed in the header. If a product is not recognized, or a license cannot be found, then the license is reported as unknown. If the license is a trial license, the term Trial instead of License appears in the output.
ver product displays, in addition to the header information:
The current version number for product, where product is the name of the folder that contains the Contents.m file for the product you are inquiring about.
The license number for product, if it differs from the MATLAB license number listed in the header.
Display version and license information for all installed products. The output shown here is representative. Your results may differ.
ver
------------------------------------------------------------------------------------------------------- MATLAB Version 7.14.0.39041 (R2012a) MATLAB License Number: 234567 Operating System: Microsoft Windows 7 Version 6.1 (Build 7600) Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------------- MATLAB Version 7.14 (R2012a) Simulink Version 8.0 (R2012a) License 345678 Control System Toolbox Version 9.3 (R2012a) License 123456
Display version and license information for MATLAB and the Control System Toolbox product. The output shown here is representative. Your results may differ.
1. Determine the product name for Control System Toolbox by setting n to the name of a function unique to Control System Toolbox, such as dss:
n = 'dss'; pat = '(?<=^.+[\\/]toolbox[\\/])[^\\/]+'; regexp(which(n), pat, 'match', 'once')
ans= control
2. Specify the value returned in the previous step as an argument to ver:
ver control------------------------------------------------------------------------------------------------------- MATLAB Version 7.14.0.39041 (R2012a) MATLAB License Number: 234567 Operating System: Microsoft Windows 7 Version 6.1 (Build 7600) Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------------- Control System Toolbox Version 9.3 (R2012a) License 123456
Create a structure containing version and license information, and then display the structure values. The output shown here is representative. Your results may differ.
v=ver; for k = 1:length(v) fprintf('%s\n', v(k).Name); fprintf(' Version: %s\n', v(k).Version); fprintf(' License: %s\n', v(k).Licenses{1}); end
MATLAB Version: 7.14 License: 234567 MATLAB Builder JA Version: 2.2.4 License: 234567 MATLAB Builder NE Version: 4.2 License: 555555 MATLAB Compiler Version: 4.17 License: 234567 My Custom Toolbox Version: 1.0 License: unknown
Create a structure containing version and license information for just the Symbolic Math Toolbox™ product. The output shown here is representative. Your results may differ.
1. Determine the product name for Symbolic Math Toolbox by setting n to the name of a function unique to Symbolic Math Toolbox, such as sym:
n = 'sym'; pat = '(?<=^.+[\\/]toolbox[\\/])[^\\/]+'; regexp(which(n), pat, 'match', 'once')
ans = symbolic
2. Specify the value returned in the previous step as an argument to ver:
v = ver('symbolic')
v =
Name: 'Symbolic Math Toolbox'
Version: '5.8'
Release: '(R2012a)'
Date: '14-Sep-2011'
Licenses: {'123456'}computer | help | hostid | license | verlessthan | version
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |