Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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 options, is an alternate form of the syntax.

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

Examples

collapse 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 Values

[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

Introduced before R2006a

Was this topic helpful?