This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

version

Version number for MATLAB and libraries

Syntax

version
version = version('-versionOption')
[version date] = version

Description

example

version displays the version and release number for the currently runningMATLAB®.

example

version = version('-versionOption') returns information for the specified option.

[version date] = version returns the version, release number, and release date. No input arguments are allowed in this syntax.

Examples

collapse all

version
ans = 
'9.6.0.1092380 (R2019a) Update 1'

Display the release, prefaced by descriptive text.

['Release R' version('-release')]
ans = 
'Release R2019a'
[v d] = version
v = 
'9.6.0.1092380 (R2019a) Update 1'
d = 
'April 3, 2019'
version -java
ans = 
'Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'

Input Arguments

collapse all

Version option, specified as one of these values.

'-date'

Release date.

'-description'

Description of the version. Returns:

  • empty - general release

  • 'Update n' - update release n, where n is an integer

  • 'Prerelease' - prerelease

  • 'Prerelease n' - prerelease update n, where n is an integer

'-release'

Release number.

'-java'

Version of the Oracle® JVM™ software that MATLAB uses.

Output Arguments

collapse all

Version and release information, returned as a character vector.

Release date, returned as a character vector.

Introduced before R2006a