Main Content


Version number for MATLAB and libraries



version displays the version and release number for the currently running MATLAB®.


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

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


collapse all

ans = 
' (R2024a) Update 3'

Display the release, prefaced by descriptive text.

['Release R' version('-release')]
ans = 
'Release R2024a'
[v d] = version
v = 
' (R2024a) Update 3'
d = 
'April 16, 2024'
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.


Release date.


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 number.


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.

Extended Capabilities

Thread-Based Environment
Run code in the background using MATLAB® backgroundPool or accelerate code with Parallel Computing Toolbox™ ThreadPool.

Version History

Introduced before R2006a

expand all