Run Fortran program from Matlab

I need to wrap a Fortran program to run from Matlab.  Has anyone done this before?  I did not find much information in my search.  Thank you for any help you can give.
Who is Participating?
Florian LenschowCommented:
I used to do this with c++ source files, which is accomplished using the mex-interface. It also supports Fortran (Fortran Source File mex. If I remember correctly, you will need to fit your program to the general Matlab function signature using the functions mex provides. The resulting file can be compiled to a binary mex file, that can be called from Matlab. I haven't worked with Fortran so I can't really go into detail here. I hope the link is helpful.
newtoperlpgmAuthor Commented:
I tried but had not luck with the current version of Matlab.  Thank you though.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.