Skip to Main Content Skip to Search
Home |   Nordic  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company

Generate C Code from MATLAB Functions Using the Embedded MATLAB Subset

Register now

Best Practices for a MATLAB to C Workflow

Read now

From MATLAB to Embedded C

Read now

From MATLAB to Embedded C

Generate C code directly from MATLAB algorithms

Embedded MATLAB® enables you to generate C code automatically from MATLAB® and include MATLAB algorithms in Simulink® models for efficient system simulation and code generation. A subset of the MATLAB language, Embedded MATLAB supports C-code generation for embedded algorithms and systems. It consists of more than 300 operators and functions from MATLAB, 110 functions from Fixed-Point Toolbox™, and 40 functions from Signal Processing Toolbox™.

Key Features for MATLAB Users

By using MATLAB code written with the Embedded MATLAB subset, you can automatically generate C code directly from MATLAB for embedded software prototyping and implementation. You can also:

  • Use MATLAB and Fixed-Point Toolbox™ to develop embeddable floating-point and fixed-point algorithms and run simulations at compiled C speed
  • Use Real-Time Workshop® to automatically generate C code directly from MATLAB functions

Related products: MATLAB, Fixed-Point Toolbox, Real-Time Workshop

Key Features for Simulink Users

Simulink users can include Embedded MATLAB code within models for system simulation and for embedded C and HDL code generation. Within the Simulink product family, you can:

  • Include embedded-ready MATLAB code in Simulink models
  • Use Real-Time Workshop to generate C code from Simulink models containing MATLAB code
  • Use Simulink HDL Coder™ to generate synthesizable Verilog® and VHDL® from Simulink models containing MATLAB code

Related products: Simulink, Real-Time Workshop, Simulink HDL Coder

The Embedded MATLAB workflow. Working with products that support the Embedded MATLAB subset, you can generate C code and HDL automatically from MATLAB, and include MATLAB algorithms in Simulink models for efficient system simulation and code generation.

Click on image to see enlarged view.