Guy on Simulink

Simulink & Model-Based Design

Posts 81 - 90 of 98

Results for: Simulink Tips

Including MATLAB code in a simulation 29

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... read more >>

10 Simple Rules for High-Performance Generated Code 3

I was recently asked, "Do you have some kind of list or simple rules to get high performance generated code using Real-Time Workshop?" I put the question to my colleague (and first guest blogger)... read more >>

How to customize the Simulink Scope! 21

/* Publisher style MATLAB code */ pre.codeinput { background: #EEEEEE; padding: 10px; } @media print { pre.codeinput {word-wrap:break-word; width:100%;} } span.keyword {color:... read more >>

Applying a Scalar Algorithm to a Vector 14

This week, Seth Popinchalk is visiting MathWorks Japan. Today's post is from Guy Rouleau: One of my favorite situations in technical support goes like this: Someone asks "Is it possible to do... read more >>

Causes of Algebraic Loops 1

A lot of people ask the question, "Why does my model have an algebraic loop?" Of course, every model is different, but here are some general truths about algebraic loops: Real physical systems... read more >>

Variables You Depend On 6

/* Publisher style MATLAB code */ pre.codeinput { background: #EEEEEE; padding: 10px; } @media print { pre.codeinput {word-wrap:break-word; width:100%;} } span.keyword {color:... read more >>

Back-Seat Driver: Simulink Tips for Efficient Model Navigation 7

Does this ever happen to you? You are sitting in a meeting looking up at the projected image of your coworker’s computer desktop.  They are navigating through {a web page, a Simulink model, or... read more >>

A Better If-Else Construct 16

In a previous post, I answered a question about how to model an If-Else behavior.  Here I will restate the algorithm I want to create: if(sel==0) out = 2*in1; elseif (sel==1) out =... read more >>

Better Bus Modeling (How to remove Bus/Mux confusion) 6

Earlier this week, Guy and I were discussing the sometimes-strange behavior of mux and bus signals.  Sometimes people find a Mux block in their model that appears to output a bus signal.  In this... read more >>

Refining the Output of a Simulation 9

Today I am pleased to share a post from regular guest blogger, Guy Rouleau.  Enjoy! I often use Simulink to model the dynamics of simple systems. In most cases, the Simulink default... read more >>

Posts 81 - 90 of 98