Generate C and C++ code from Simulink and Stateflow models

Simulink Coder (formerly Real-Time Workshop®) generates and executes C and C++ code from Simulink® diagrams, Stateflow® charts, and MATLAB® functions. The generated source code can be used for real-time and nonreal-time applications, including simulation acceleration, rapid prototyping, and hardware-in-the-loop testing. You can tune and monitor the generated code using Simulink or run and interact with the code outside MATLAB and Simulink.

10 Best Practices for Deploying AUTOSAR Using Simulink


Working with Targets

Configure all code generation settings from a single user interface.

Learn more

Working with Data

Define and control how the model data appears in the generated code.

Learn more

Generating Code

Generate code for Simulink and Stateflow features and components.

Learn more

Executing Code in a Real-Time Environment

Executing the generated code in real time and incorporate it into your execution environment.

Learn more

Tuning Parameters and Logging Data

Optimize your algorithm’s performance and improve code execution behavior.

Learn more

Product Resources

Discover more about Simulink Coder by exploring these resources.


Explore documentation for Simulink Coder functions and features, including release notes and examples.


Browse the list of available Simulink Coder functions.


View a Simulink library of blocks that Simulink Coder supports.

System Requirements

View system requirements for the latest release of Simulink Coder.

Technical Articles

View articles that demonstrate technical advantages of using Simulink Coder.

User Stories

Read how Simulink Coder is accelerating research and development in your industry.

Community and Support

Find answers to questions and explore troubleshooting resources.

Hardware Support

Connect Simulink Coder to hardware platforms.

Production Code Generation Evaluation Kit

Learn about the code generation process using Simulink and Embedded Coder with the Eclipse IDE™

Try or Buy

Get a Free Trial

Test drive Simulink Coder.

Get a trial

Ready to Buy?

Purchase Simulink Coder and explore related products.

Contact sales
Pricing and licensing

Have Questions?


Contact Shwetha Bhadravathi Mallikarju,
Simulink Coder Technical Expert

Email Shwetha

Simulink Coder requires: Simulink, MATLAB Coder, MATLAB

Related Solutions

Use Simulink Coder to solve scientific and engineering challenges:

News and Events

Get a MathWorks engineer's perspective on Simulink and Model-Based Design.

Learn to Generate and Test Embedded Code