Implement Algorithms Using Fortran Code

Implement Fortran code in custom Simulink® blocks

Implement Fortran code in your Simulink blocks.


S-FunctionInclude S-function in model
S-Function BuilderIntegrate C or C++ code to create S-functions


Create Level-2 Fortran S-Functions

Describes a hybrid C/Fortran approach to writing an S-function that enables creation of more capable blocks.

Port Legacy Code

How to wrap a C MEX S-function around existing Fortran code.