Error: Failure loading MATLAB libraries. This model requires that MATLAB is available.

Solution Number: 1093
Title: Error: Failure loading MATLAB libraries. This model requires that MATLAB is available.
Platform: Windows
Applies to: LiveLink™ for MATLAB®
Versions: All versions
Categories: Error Messages, Installation
Keywords:

Problem Description

When trying to run a COMSOL model, the following error message appears: Failure loading MATLAB® libraries. This model requires that MATLAB is available.

Solution

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.

  1. In the COMSOL Desktop, go to File menu and select Preferences.
  2. 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.
  3. Finally click Register MATLAB® as COM Server.

See also:
COMSOL with MATLAB does not start with the latest version (kb 1113)


Disclaimer

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.