When trying to run a COMSOL model, the following error message appears: Failure loading MATLAB® libraries. This model requires that MATLAB is available.
When calling external MATLAB functions, COMSOL automatically starts MATLAB in order to evaluate the function. COMSOL uses the MATLAB path set in the Windows system PATH environment variable. If you have several MATLAB versions installed, COMSOL will use the first path that is found in the PATH environment variable. Installing a new MATLAB version or reinstalling a previous version can create unwanted behavior.
- In the COMSOL Desktop, go to File menu and select Preferences.
- In the Preferences window select LiveLink Connections. In the LiveLink™ for MATLAB® section, in MATLAB® installation folder browse to the desired MATLAB installation root directory.
- Finally click Register MATLAB® as COM Server.
COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.