Main Content

version

Version number for MATLAB and libraries

Description

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

example

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

example

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

Examples

collapse all

version
ans = 
'24.2.0.2712019 (R2024b)'

Display the release, prefaced by descriptive text.

['Release R' version('-release')]
ans = 
'Release R2024b'
[v d] = version
v = 
'24.2.0.2712019 (R2024b)'
d = 
'August 22, 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.

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

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