Documentation

Fortran S-Functions

Create custom blocks defined by Fortran code

Blocks

S-FunctionInclude S-function in model

Topics

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.

Was this topic helpful?