Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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

version
ans =

8.2.0.29 (R2013b)

Display the release, prefaced by a descriptor.

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

Release R2013b
[v d] = version
v =

8.2.0.29 (R2013b)


d =

May 19, 2013
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?