version

Version number for MATLAB and libraries

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.7.0.1190202 (R2019b)'

Display the release, prefaced by descriptive text.

['Release R' version('-release')]
ans = 
'Release R2019b'
[v d] = version
v = 
'9.7.0.1190202 (R2019b)'
d = 
'August 21, 2019'
version -java
ans = 
'Java 1.8.0_202-b08 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