Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Calling a Matlab function from within Comsol
Posted Mar 12, 2012, 2:13 p.m. EDT Interfacing Version 4.1 2 Replies
Please login with a confirmed email address before reporting spam
I would like to call a Matlab function from within Comsol, and run across the error:
Failed to load library.
- Error: dlopen(/Applications/COMSOL41/lib/maci64/flmatlab.dylib, 5): Library not loaded: @loader_path/libeng.dylib
Referenced from: /Applications/COMSOL41/lib/maci64/flmatlab.dylib
Reason: image not found
I have the library on my computer (a Mac) in /Applications/MATLAB_R2011b.app/bin/maci64/libeng.dylib , but do not know how to check or set @loader_path.
As a simple example of how to get this error is to write a Matlab function:
function output=disp(x)
output=x;
and insert it into Comsol as a displacement boundary condition.
Any ideas?
Teresa
Failed to load library.
- Error: dlopen(/Applications/COMSOL41/lib/maci64/flmatlab.dylib, 5): Library not loaded: @loader_path/libeng.dylib
Referenced from: /Applications/COMSOL41/lib/maci64/flmatlab.dylib
Reason: image not found
I have the library on my computer (a Mac) in /Applications/MATLAB_R2011b.app/bin/maci64/libeng.dylib , but do not know how to check or set @loader_path.
As a simple example of how to get this error is to write a Matlab function:
function output=disp(x)
output=x;
and insert it into Comsol as a displacement boundary condition.
Any ideas?
Teresa
2 Replies Last Post Jul 26, 2017, 2:46 a.m. EDT