Guy on Simulink

Simulink & Model-Based Design

Posts 1 - 10 of 15

結果: Numerics

Computing π… Simscape Multibody Style 1

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,... 続きを読む >>

Optimizing Data Types with the Fixed-Point Tool 2

Have you ever had one of those days... ?

The Explanation
When I see things like that, my first reflex is usually to turn on most of the items in the Display menu. In this case, displaying the port... 続きを読む >>

Improved Behavior of Auto Tolerance in R2017a

Are you familiar with the meaning of auto for the Absolute tolerance of Simulink variable-step solvers?
In R2017a, we decided to change the meaning of auto for the Absolute Tolerance... If your model... 続きを読む >>

Simulink Debugger: Monitoring Variable Step Solver Performance 2

A few months ago I introduced my favorite command to analyze the performance of a variable-step solver. This week, I will introduce how the Simulink Debugger can be used for a deeper analysis of... 続きを読む >>

Why do we need Stiff ODE Solvers? 2

I hope you have noticed the new MATLAB Central blog: Cleve's Corner. Cleve once said "stiffness is an efficiency issue." Let's explore this from a Simulink point of view by revisiting an article by... 続きを読む >>

THE Most Useful Command for Debugging Variable Step Solver Performance 2

Today I want to share a trick I often use to determine if a variable step simulation runs as fast as it should. Visualizing the steps taken by a model To begin, save the simulation time data.... 続きを読む >>

Different Results in Accelerated Mode Versus Normal Mode 8

By Guy Rouleau This week I received a large model giving different results when used as a referenced model in Accelerated mode, compared to the Normal Mode. To give you an idea, the top model in... 続きを読む >>

Wrong Answers and Gimbal Lock 6

By Guy Rouleau I received a request last week where the code generated using Real-time Workshop was giving different answers from the original simulation. This type of requests is the one that... 続きを読む >>

Did I just get a different answer? 3

As part of any well designed Model Based Design work-flow, you need to ensure that you get the expected results from your simulation. You might want to evaluate the effect... 続きを読む >>

Round-off Error

Loren recently posted a simple example of how single-threaded computations might produce different results from multi-threaded computations.  The cause is floating-point round off, and most people... 続きを読む >>

Posts 1 - 10 of 15