
mex  matlab calls fortran which calls matlab which calls fortran  is it possible?
Posted:
Oct 8, 2009 10:37 AM


Dear All,
I'm trying to link matlab and fortran with mex files and engine matlab, in linux OS. My general purpose is the following:
1) a matlab script A calls a mex function B based upon fortran source code
2) mex function B calls another function in matlab C within matlab engine
3) matlab routine C calls another mex file in fortran D
While i'm able to do steps 2) and 3), I can't do step 1). Before to show the code, please reply to this simple question:
Is it possible to build the overall process 13?

