Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

Calling a Matlab function from within Comsol

$
0
0
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

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>