
Re: mex  matlab calls fortran which calls matlab which calls fortran  is it possible?
Posted:
Oct 15, 2009 9:17 AM


I worked using the following setting:
A) Matlab script (writes on disk the input for B) > B) fortran source code (as main)(reads data from disk) opens matlab engine C) > C) launches mex file D)
D) returns to C) > C) collects data and send to B) > B) close engine, qrites data to disk  > A) reads data.
The result is a slower computation mainly due to the engine open callings....

