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!