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.