version

Version number for MATLAB and libraries

Syntax

version
version -date
version -description
version -release
version -java
v = version('-versionOption')
[v d] = version

Description

version returns in ans the version and release number for the MATLAB® software currently running.

version -date returns in ans the release date for the MATLAB software.

version -description returns in ans a description of the version. Usually, the description is for special versions, such as beta versions.

version -release returns in ans the release number for the MATLAB software currently running.

version -java returns in ans the version of the Oracle® JVM™ software that MATLAB is using.

v = version('-versionOption'), where versionOption is one of the above option strings, is an alternate form of the syntax.

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

Examples

expand all

Display MATLAB Version

version
ans =

8.2.0.29 (R2013b)

Display MATLAB Release

Display the release, prefaced by a descriptor.

['Release R' version('-release')]
ans =

Release R2013b

Get Release Version and Date as Separate Strings

[v d] = version
v =

8.2.0.29 (R2013b)


d =

May 19, 2013

Display Java Version

version -java
ans =

Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
Was this topic helpful?