Problem Description

I have installed a new MATLAB version, but running COMSOL with MATLAB keeps opening the older version of MATLAB.

Solution

You need to manually update the MATLAB root directory path.

In the COMSOL Desktop, on Windows® go to the File menu and select Preferences; on Linux® or macOS, go to the Options menu and select Preferences. In the Preferences window select LiveLink Connections. In the LiveLink™ for MATLAB® you can browse to the new MATLAB® installation folder. For Windows® users, click the Register MATLAB® as COM Server button. Finally click OK and close the COMSOL Desktop.

Please verify the COMSOL Livelink for MATLAB system requirements to ensure the compatibility between the programs. See also: MATLAB function calls fail (kb 1093)