Quantcast
Channel: Guy on Simulink
Browsing all 159 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Parameter Values in Blocks Dialogs

MATLAB R2022b was released a few weeks ago, so it's time to highlight a few new Simulink features. In this post, I decided to focus on one feature that might pass a little bit under the radar, but that...

View Article


Image may be NSFW.
Clik here to view.

Creating a Match Filter for Simulink.findBlocks

Some time ago, I published a post encouraging you to use Simulink.findBlocks instead of find_system. This week, I will take this a little bit further and show how to create a custom match filter to...

View Article


Image may be NSFW.
Clik here to view.

Tips and Tricks when Dealing with Callbacks in Simulink

As you probably know, it is possible to define many types of callbacks in a Simulink model. Callbacks can be very useful to automatically execute MATLAB code in certain situations, for example when a...

View Article

Image may be NSFW.
Clik here to view.

Parallel Simulations: Your options to configure data when using parsim and...

Today I am happy to welcome guest blogger Reid Spence. Reid helps Simulink users running simulations in parallel using functions like parsim or batchsim. In this post, he shares best practices to...

View Article

Image may be NSFW.
Clik here to view.

Function Handles and Post-Simulation Functions

Until recently, I always had trouble when dealing with MATLAB function handles. I cannot really explain why, there was just something I could not wrap my head around.To help a user, I finally took the...

View Article


Image may be NSFW.
Clik here to view.

Finding what you need in the Simulink Toolstrip

Throughout the years, there have been features introduced in Simulink that initially looked like minor "nice to have", but turned out to be major game changers. In the last few releases of Simulink,...

View Article

Image may be NSFW.
Clik here to view.

Leveraging Generated Code from MATLAB in a C++ Application

Today I am happy to welcome guest blogger Erin McGarrity. The main reason why I am excited to welcome Erin as guest blogger is that he will be talking about generating C/C++ code from MATLAB code and...

View Article

Image may be NSFW.
Clik here to view.

Leveraging Model Comparison to find what you need

Today I want to share an example of how I sometimes use Model Comparison to answer questions about Simulink blocks or models. While this is obviously a key part of the workflow to merge branches in a...

View Article


Image may be NSFW.
Clik here to view.

Linking to a Dynamic Library from MATLAB Coder for a Windows Computer Vision...

In a previous post, I demonstrated the basics of generating C/C++ code from a MATLAB function and how to use that code to create a dynamic library (DLL) that could be used in an external application....

View Article


Image may be NSFW.
Clik here to view.

What’s New in Simulink R2023a?

Each new release, I am always excited to share my favorite new Simulink features. As Simulink and our modeling and simulation technologies continue to mature, I am noticing that my release highlights...

View Article

Image may be NSFW.
Clik here to view.

Defining Model Interfaces Using Bus Element Ports

Today I want to talk about Bus Element Ports. More specifically, I will share examples illustrating how Bus Element Ports can simplify the process of specifying the properties of bus signals entering...

View Article

Image may be NSFW.
Clik here to view.

Referenced Projects

Today I want to talk about Referenced Projects. They can be very useful to componentize a large project, allowing for modular work, component reuse, unit testing, etc.Working in technical support and...

View Article

Image may be NSFW.
Clik here to view.

Customizing the Code Generated from Simulink

I want to start by giving you a heads up that guest blogger Erin McGarrity will be coming back soon with more posts about Simulink Coder and Embedded Coder. Before going deeper into code generation...

View Article


Image may be NSFW.
Clik here to view.

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 Article

Image may be NSFW.
Clik here to view.

Debugging 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 Article


Image may be NSFW.
Clik here to view.

Guy 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 Article

Image may be NSFW.
Clik here to view.

Tips 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 Article


Image may be NSFW.
Clik here to view.

What’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 Article

Image may be NSFW.
Clik here to view.

Signals 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 Article

Image may be NSFW.
Clik here to view.

Getting 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 Article
Browsing all 159 articles
Browse latest View live