| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Embedded MATLAB |
| Contents | Index |
| On this page… |
|---|
This tutorial involves two key procedures:
Generating C code from M-code for embedded applications
In this part of the tutorial, you make your M-code Embedded MATLAB compliant and then generate C code.
To complete this part of the tutorial, you should have basic familiarity with MATLAB software. You do not need to be familiar with or use Simulink or Real-Time Workshop software.
Integrating Embedded MATLAB compliant code with Simulink
In this part of the tutorial, you integrate your M-code with Simulink using the Embedded MATLAB Function block.
To complete this part of the tutorial, you should understand how to create a basic Simulink model and how to simulate that model. For more information, see Simulink Software Basics in the Simulink documentation.
To complete this tutorial, you must install the following products:
MATLAB
Simulink
Fixed-Point Toolbox (required when using fixed-point capabilities)
Real-Time Workshop
C compiler (a default C compiler is supplied with MATLAB)
For instructions on installing MathWorks products, see the MATLAB installation documentation for your platform. If you have installed MATLAB and want to check which other MathWorks products are installed, enter ver in the MATLAB Command Window. For instructions on installing and setting up a C compiler, see Setting Up the C Compiler in the Embedded MATLAB User's Guide.
![]() | Benefits of Using the Embedded MATLAB Subset | Generating C Code from MATLAB Code for Embedded Applications | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |