Avoiding Unwanted Data Copies in Simulink Generated Code via Reusing I/O
Recently, we've had a few customers ask if it's possible to configure their models to alter values on a bus that goes into and out of their model without making a data copy. There are several ways to...
View ArticleDebugging C/C++ code in Simulink
As you probably know, it is possible to integrate C/C++ code in Simulink simulations. This can be done in many ways, including:C/C++ S-FunctionS-Function BuilderLegacy Code ToolC CallerC FunctionMATLAB...
View ArticleGuy on Simulink Material on GitHub and MATLAB Online
Did you notice the recent blog post Open science and reusable research with MATLAB Online and GitHub by my colleague Mike Croucher on The MATLAB Blog?I decided to try adopting this new feature to open...
View ArticleTips for Working with Simulink Libraries and Data Dictionaries
I came across an interesting feature recently for Simulink® libraries that could be helpful when working with buses and other types associated with them. The Problem Let's say we have a library with...
View ArticleWhat’s New in R2023b?
With so many features and enhancements introduced each release, it's difficult to decide which ones to highlight on this blog. Here are a few of my favorites in R2023b.Variant NavigationIn R2023b, we...
View ArticleSignals vs Parameters in Simulink… and the Parameter Writer block
A colleague recently told me that he was often referring users to this blog post I wrote many years ago: How Do I Change a Block Parameter Based on the Output of Another Block?Even if most of what I...
View ArticleGetting the most out of Rapid Accelerator mode – Version R2023b
Earlier this week, a user came to me with a question related to a blog post I wrote a long time ago: Getting the most out of Rapid Accelerator mode. This made me realize that since then, we have made...
View ArticleYouTube Livestream on Speeding Up Simulink Simulation Workflows
I don’t usually publicize this sort of thing on this blog, but I think the subject is too relevant for many readers of this blog to no advertise it. Next Thursday, October 19th, 2023, we are having a...
View ArticleAccelerator Cache and Rebuilds – Everything you need to know
In Simulink, the different simulation modes (accelerators) can save you a lot of time. There are, however, subtleties to what “time” you can save, and how we can achieve those savings. In this post, I...
View ArticleHow to Create a Mask Popup Parameter that can be tuned in Rapid Accelerator
A few weeks ago I published this blog post: Getting the most out of Rapid Accelerator mode – Version R2023b, where I described how to simulate a model multiple times in Rapid Accelerator mode for...
View ArticleBecome a MathWorks Certified Simulink Associate!
The MathWorks Certification Program recently released a new certification: Simulink Associate.With this certification, you will be able to demonstrate your Simulink proficiency to colleagues, industry...
View ArticleComputing π… Simscape Multibody Style
On this π day 2024, I decided to tag along with Mike Croucher from The MATLAB Blog and show one way to compute π.While Mike went for advanced maneuvers involving the MATLAB AI Chat Playground, Parallel...
View ArticleWhat’s New in Simulink in R2024a: Emojis!
MATLAB R2024a has been released recently, so I thought I should share my favorite new addition to Simulink: The ability to add emojis everywhere!As you probably know, it has been possible for many...
View ArticleWhat’s New in Simulink R2024a?
MATLAB R2024a is now available, and a lot of new important features have been added to Simulink. Here are my top 5.Simulation objectUsing the Simulation object, you can programmatically run a...
View Article
More Pages to Explore .....