As we all know, in Simulink there are always multiple ways to implement a functionality. One situation where I often hesitate when choosing an implementation is conditional execution. I will share... 続きを読む >>
As we all know, in Simulink there are always multiple ways to implement a functionality. One situation where I often hesitate when choosing an implementation is conditional execution. I will share... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>
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... 続きを読む >>