Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Matlab mex gateways for libraries
Posted:
Nov 14, 1996 3:04 PM


Has anyone made Matlab fortran mex gateways for libraries of routines?
We have a situation here where we want to use libraries of Fortran routines with Matlab. I was wondering if I could get some comments on the following issues:
1) You can't make a separate gateway for each routine from the library because each gateway needs to be linked with the library. That makes for a waste of disk space.
2) Suppose two (or more) routines in a library both rely on a third which reads data from a file. This means you have to have one gateway routine for the whole library. Othewise, there are file handeling problems.
3) Gateway routines don't seem to have a way to pass character string arguments as input or output.
Finally, is anybody out there using the NAG Gateway Generator? http://connections.mathworks.com/nagwrgte.html
Troy.  >============== http://www.csun.edu/~kg46825/TGoodson.html =============== >Troy Goodson Cassini Maneuver Analysis >Jet Propulsion Laboratory, Caltech >http://www.jpl.nasa.gov/ mailto:Troy.D.Goodson@jpl.nasa.gov = my opinions are not those of jpl =



