I have Fortran code that includes subroutines. I would like to essentially convert this code into a Simulink library block (possibly using an S-function). I think I need to convert this code to a MEX file?
Do I need to add anything to my existing Fortran code before doing this?
Typing 'mex filename.f90' doesn't work and comes up with a huge list of errors.
Any help would be greatly appreciated!
2 Comments
Direct link to this comment:
http://www.mathworks.fr/matlabcentral/answers/44638#comment_91810
Which MATLAB version are you using? And which fortran compiler do you have configured?
Direct link to this comment:
http://www.mathworks.fr/matlabcentral/answers/44638#comment_91846
Creating Fortran S-Functions in matlab could be helpful to you.