MATLAB: How to select the version of MATLAB that is opened with the engOpen or engOpenSingleUse MATLAB Engine API functions in MATLAB 7.1 (R14SP3)

MATLAB

I have multiple versions of MATLAB installed on my machine. I would like to specify which of these versions is opened when issuing the engOpen or engOpenSingleUse function in a MATLAB Engine application.

Best Answer

The ability to programmatically select the version of MATLAB that is opened when issuing the engOpen or engOpenSingleUse function is not available in MATLAB 7.1 (R14SP3). On a Windows platform, the version of MATLAB that is used when issuing these functions is the last one that was registered by starting MATLAB with the /regserver option.