DocumentationHelp Center
Version number for MATLAB and libraries
version
v = version('-versionOption')
[v d] = version
example
version displays the version and release number for the currently running MATLAB®.
v = version('-versionOption') returns information for the specified option.
v
versionOption
[v d] = version returns the version, release number, and release date. No input arguments are allowed in this syntax.
d
collapse all
ans = '9.9.0.1462360 (R2020b)'
Display the release, prefaced by descriptive text.
['Release R' version('-release')]
ans = 'Release R2020b'
v = '9.9.0.1462360 (R2020b)'
d = 'August 19, 2020'
version -java
ans = 'Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode'
'-date'
'-description'
'-release'
'-java'
Version option, specified as one of these values.
Description of the version. Returns:
empty - general release
'Update n' - update release n, where n is an integer
n
'Prerelease' - prerelease
'Prerelease n' - prerelease update n, where n is an integer
Version of the Oracle® JVM™ software that MATLAB uses.
Version and release information, returned as a character vector.
Release date, returned as a character vector.
computer | ver | verLessThan
computer
ver
verLessThan
A modified version of this example exists on your system. Do you want to open this version instead?
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office