Importing C code into Simulink

Tutorial and examples of how to import C code into Simulink.

You are now following this Submission

Shows how to use S-function Builder block and the full S-function API to import various styles of legacy C code into the Simulink framework.

Cite As

Colin Warwick (2026). Importing C code into Simulink (https://se.mathworks.com/matlabcentral/fileexchange/3105-importing-c-code-into-simulink), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Block and Blockset Authoring in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0