Kalman filtering demo in MATLAB with automatic MATLAB-to-C code generation

Kalman filtering algorithm to track an object and generating C source code for implementation

You are now following this Submission

This entry contains the demo presented as part of two separate MathWorks webinars related to MATLAB-to-C code generation. In this demo, we feature a Kalman filtering algorithm for tracking moving objects and will demonstrate how to automatically generate C code from MATLAB functions.
Automatic MATLAB-to-C code generation is available for a subset of the MATLAB language called Embedded MATLAB®, which consists of more than 310 MATLAB operators and functions, 110 Fixed-Point Toolbox functions, and 35 Signal Processing Toolbox functions and new System objects in Signal Processing Blockset and Video and Image Processing Blockset.

You will learn how to develop a MATLAB algorithm based on Kalman filtering to track the trajectory of an object moving in Cartesian 2-D space. You also learn how to use specific features of MATLAB, Fixed-Point Toolbox, Simulink, Real-Time Workshop, and related products to:

- Develop and validate MATLAB algorithms compliant with the Embedded MATLAB subset
- Automatically generate C code from your designs in MATLAB and Simulink
- Iterate and elaborate your algorithm to to handle typical design patterns like use of variable-size data & fixed-point data

Cite As

Houman Zarrinkoub (2026). Kalman filtering demo in MATLAB with automatic MATLAB-to-C code generation (https://www.mathworks.com/matlabcentral/fileexchange/26862-kalman-filtering-demo-in-matlab-with-automatic-matlab-to-c-code-generation), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated license

1.2.0.0

Just changed the title to focus on what this entry does and optimize download potential

1.1.0.0

Copyright additions; updated description and added links.

1.0.0.0