Fortran Code to Simulink? (MEX file??)

Asked by Emily Zimovan on 26 Jul 2012
Latest activity Commented on by TAB on 27 Jul 2012

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

Walter Roberson on 26 Jul 2012

Which MATLAB version are you using? And which fortran compiler do you have configured?

TAB on 27 Jul 2012

Creating Fortran S-Functions in matlab could be helpful to you.

Emily Zimovan

Products

0 Answers

Contact us