Guy on Simulink

Simulink & Model-Based Design

Posts 61 - 70 of 98

Results for: Simulink Tips

Using Discrete Data as an input to your Simulink model 5

August 2019 Update: See blog post Loading Signals in Timetable Format for an improved way to address the issue described in this post. ----------------- Today I want to look at a problem that... read more >>

Initializing buses using a MATLAB Structure 10

Did you notice that since R2010a it is possible to initialize buses with a MATLAB structure? If you were not aware, here is how it works. Starting from a Structure Let's say I have a structure... read more >>

Finding where variables are used from the Model Explorer

In a previous post, we illustrated the Simulink.findVars function. To be honest, I am not very good at remembering the syntax of functions. Every time I encounter a situation where I could use... read more >>

Sample Time Offset 6

I noticed that many users are not aware that it is possible to specify sample time offsets in Simulink. Scalar Sample Time In this simple model, I have specified the sample time of the Constant... read more >>

Auto Solver Settings 4

When looking at the solver configuration of a new model, you probably noticed that many settings are set to Auto. When an Auto option is provided for a setting, it is because we feel that this... read more >>

Continuous sample time inside For Each Subsystem 7

Back in 2010, I wrote a post explaining how to apply a scalar algorithm to a vector using the For Each subsystem. At that time, only discrete algorithms could be vectorized that way. In R2011b, the... read more >>

Troubleshooting the Transport Delay Block 2

Yesterday I came across this model: At first look, one might think that these two implementations should give the same results. However this is not the case because the delayed data is... read more >>

How to customize the Simulink Scope – Take 2 9

Among all the posts I made in the last year, one that received many comments is How to customize the Simulink Scope. In this post, I suggested to use the simplot function to customize the way you... read more >>

Controlling signal logging from Model Explorer

Today I want to share a useful trick to control signal logging using the Model Explorer. Enabling Logging from the Signal Properties dialog Until recently, to enable logging of signals I was... read more >>

The Dataset logging format 2

Did you notice the new Dataset logging format available in R2011a? This new format offers a lot of advantages over the old ModelDataLogs format. Here are a few examples. Timeseries... read more >>

Posts 61 - 70 of 98