Code Generation

Convert physical models to code


About Code Generation from Simscape Models

You can use Simulink® Coder™ software to generate standalone C or C++ code from your Physical Networks models and enhance simulation speed and portability.

Reasons for Generating Code

Code generation has many purposes and methods.

Using Code-Related Products and Features

With Simulink, Simulink Coder, and Simulink Real-Time™ software, using several code-related technologies, you can link existing code to your models and generate code versions of your models.

How Simscape Code Generation Differs from Simulink

In general, using the code generated from Simscape™ models is similar to using code generated from regular Simulink models.

Was this topic helpful?