Guy and Seth on Simulink

Results for: MATLAB

Simulink and MATLAB objects 4

Posted by Guy Rouleau,

Simulink and MATLAB objects Recently, I spoke with a user who needed to interface a Simulink model with an external flight simulator implemented as java classes. He was able to exchange data with his simulator at the MATLAB prompt, but was not sure how to make that happen in Simulink. Here is what I proposed. The... read more >>

Accessing Block Data During a Simulation 3

Posted by Guy Rouleau,

Accessing Block Data During a Simulation This week I discovered that event listeners also work with bus signals! You might be saying: "What is an event listener?" In this post, I will describe how to register an event listener for a bus signal to display signal values on a figure. Here is the final result: You can download... read more >>

Configuring the MATLAB R2012b Desktop 5

Posted by Guy Rouleau,

Configuring the MATLAB R2012b Desktop As you probably know by now, a lot of changes happened in MATLAB R2012b. As with everything, changes in our environment or with what we are used to requires adaptation. To help you with this, I will show you how I have adapted the MATLAB desktop for my common Simulink workflows. The... read more >>

Welcome to the Coders! 9

Posted by Guy Rouleau,

Welcome to the Coders! By Guy Rouleau Did you already install MATLAB R2011a? If you are used to generating code from Simulink, the first thing you probably thought after launching MATLAB R2011a is: "Where is Real-Time Workshop?" Don't panic, this is normal! All good things have an end; it is now time to say goodbye Real-Time... read more >>

Kalman Filter – From MATLAB to Embedded C Code 9

Posted by Guy Rouleau,

Kalman Filter – From MATLAB to Embedded C Code By Guy Rouleau In a previous post, I introduced the Embedded MATLAB Function block. This block gives the possibility to write an algorithm in MATLAB code, include it in a Simulink model, and generate embedded C code using Real-Time Workshop. When seeing this, some users, especially from the signal processing and communication... read more >>

Did I just get a different answer? 3

Posted by Seth Popinchalk,

Did I just get a different answer?  As part of any well designed Model Based Design work-flow, you need to ensure that you get the expected results from your simulation. You might want to evaluate the effect of... read more >>

Including MATLAB code in a simulation 26

Posted by Seth Popinchalk,

Including MATLAB code in a simulation  By Guy Rouleau Some algorithms are easier to implement using MATLAB code than blocks. This is why multiple User Defined Function blocks are available in Simulink. But when time comes to implement MATLAB code in a Simulink model, how do you choose one? I often see users making their life... read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.