View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
What is the best way to implement my algorithm in Simulink ?

5.0 | 2 ratings Rate this file 56 Downloads (last 30 days) File Size: 2.23 MB File ID: #46786 Version: 1.3
image thumbnail

What is the best way to implement my algorithm in Simulink ?


Giampiero Campa (view profile)


30 May 2014 (Updated )

Eight ways to implement an Extended Kalman Filter as a Simulink block

| Watch this File

File Information

This package contains some examples and a presentation (given at the International Conference on Robotics and Automation, Hong Kong, June 2014) discussing several possible ways of implementing an algorithm in Simulink.
Specifically, a simple Extended Kalman Filter based algorithm for attitude estimation is implemented in Simulink using S-functions (in C and MATLAB), System objects(TM), S-Function Builder, Legacy Code Tool, and the MATLAB(R) function block (using both internal and external states).
Advantages and drawbacks of the different methods are discussed, and performance is then compared in several ways. First, the different models are simulated in Simulink, then, executable files generated from each models are executed both on an Intel laptop and on an Arduino Uno, with interesting results.

Required Products Simulink
MATLAB release MATLAB 8.3 (R2014a)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
09 Dec 2015 AL

AL (view profile)

03 Oct 2014 Xiwen Yuan

30 May 2014 1.1

Streamlined signal generator

11 Jan 2016 1.1

Included the Legacy Code Tool method in the final on-board embedded code comparison.

01 Sep 2016

Updated license

10 Feb 2017 1.3

Updated just a few slides.

Contact us