Main Content

mcrversion

Return MATLAB Runtime version number that matches MATLAB version

Description

[major,minor] = mcrversion returns the MATLAB® Runtime version number matching the version of MATLAB from where the command is executed. The MATLAB Runtime version number consists of two digits, separated by a decimal point. This function returns each digit as a separate output variable: major, minor.

If the version number ever increases to three or more digits, call mcrversion with more outputs, as follows:

[major, minor, point] = mcrversion;
At this time, all outputs past “minor” are returned as zeros.

example

Examples

collapse all

Return the MATLAB Runtime Version Number Matching the Version of MATLAB.

[major, minor] = mcrversion
major =
     9
minor =
     9

Output Arguments

collapse all

Major version number returned as a positive integer scalar.

Data Types: double

Minor version number returned as a positive integer scalar.

Data Types: double