Main Content

ver

Version information

Description

example

verdisplays:

  • A header containing the MATLAB®product family version number, license number, operating system, and version of Java®software for the MATLAB product.

  • The product name, version number, and release name for MATLAB and all other installed products.

verproductdisplays the header and the version number and release name forproduct, whereproductis the name of the folder that contains theContents.mfile.

example

product_info= ver(product)returns product information to the structure array,product_info.

ver -supportdisplays licensing information for your installed products. Use this command when completing a customer service request form. This syntax is not recommended for programmatic use.

Examples

collapse all

Display version information for all installed products. The output shown here is representative. Your results might differ.

ver
------------------------------------------------------------------------------------------------------- MATLAB Version: 8.2.0.29 (R2013b) MATLAB License Number: 234567 Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1) Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------------- MATLAB Version 8.2 (R2013b) Simulink Version 8.2 (R2013b) Control System Toolbox Version 9.6 (R2013b)

Create a structure containing version information for just the Symbolic Math Toolbox™ product. The output shown here is representative. Your results might differ.

Determine the product name for Symbolic Math Toolbox by settingnto the name of a function unique to Symbolic Math Toolbox, such assym.

n ='sym';帕特='(?<=^.+[\\/]toolbox[\\/])[^\\/]+';正则表达式((n)、帕特'match','once')
ans = symbolic

Specify the value returned in the previous step as an argument tover.

v = ver("symbolic")
v = Name: 'Symbolic Math Toolbox' Version: '5.11' Release: '(R2013b)' Date: '19-May-2013'

Input Arguments

collapse all

The product or toolbox for which you want to view version information, specified as a string scalar or character vector.

Output Arguments

collapse all

Product name, version, release, and date, returned as a structure array with these fields:Name,Version,Release, andDate. If a license is a trial version, the letterTprecedes the value in theVersionfield.

Tips

  • To view version information about installed Add-Ons, including MathWorks®products in the Add-On Manager, seeGet and Manage Add-Ons.

版本嗨story

Introduced before R2006a