Node:Matlab Version, Next:, Previous:Matlab Products, Up:Autoconf Macros



Matlab Version

Some features, for example MEX-files, depend on the Matlab version number. You must not check for toolbox version numbers because the toolbox versions coming along with the Matlab kernel are fixed.

AX_MATLAB_VERSION Macro
Check for Matlab version number.

Set output variable MATLAB_VERSION to the Matlab version number, for example, 5.2, and set the output variables MATLAB_MAJOR (here 5) and MATLAB_MINOR (here 2). The user can specify an alternative version number by setting MATLAB_VERSION in the environment. The version number must match the pattern major-number.minor-number.

If this macro can determine the Matlab version number, it defines MATLAB_MAJOR and MATLAB_MINOR.

AX_REQUIRE_MATLAB_VERSION ([minimum-version]) Macro
Like the AX_MATLAB_VERSION macro described above, but fail if the Matlab version number can not be determined.

If the optional argument minimum-version is given, the Matlab version must be greater than or equal minimum-version. Otherwise, the check fails. Argument minimum-version has to be of the form major-number or major-number.minor-number.