Answered
MATLAB type in Embedded MATLAB Files
You need to declare the variable returned by CVSREAD before. For example, add: ava = zeros(M,N); before cvsread, with M ...

15 years ago | 1

Answered
ODE Simulation
This looks good at first look. Seth has a nice post on this topic: http://blogs.mathworks.com/seth/2008/05/23/how-to-draw-ode...

15 years ago | 1

| accepted

Answered
SimMechanics, pin in slot joint
Configure the Custom Joint to get what you want. Your description is vague, but looks like 1 translational and 1 rotational.

15 years ago | 1

| accepted

Answered
Programming simulink model to pause and fetch infrmation at a specific time
Typically in Simulink you want to use signals for time varying data and parameters for non-varying data. Based on your descri...

15 years ago | 1

Answered
Simulink: Sine wave generation. Configuration problem.
By default, the Simulink solver chooses the time steps using: dt = (t_stop-t_start)/50 With the default parameters, it gi...

15 years ago | 1

| accepted

Answered
Why can't I connect a scope directly from a two samples per frame signal
You have 2 options to "scope" a frame signal: - Insert Reshape block set to "1D" before the scope: http://www.mathworks.co...

15 years ago | 0

| accepted

Published


Wrong Answers and Gimbal Lock
By Guy Rouleau I received a request last week where the code generated using Real-time Workshop was giving different...

15 years ago

Thumbnail

Answered
Optimize three parameters inside Simulink model based on certain performance parameters
Simulink Design Optimization (SDO) is especially designed for this task: http://www.mathworks.com/products/sl-design-optimiza...

15 years ago | 0

Published


You need an integrator with variable limits… there’s a solution for that!
By Guy Rouleau Today I received a question where the user was looking for an Integrator block with variable upper and...

15 years ago

Thumbnail

Published


Creating Test Cases Using Signal Builder
By Parasar Kodati Every model needs to be tested, and all tests need inputs. For example control algorithms are typically...

15 years ago

Thumbnail

Published


Kalman Filter – From MATLAB to Embedded C Code
By Guy Rouleau In a previous post, I introduced the Embedded MATLAB Function block. This block gives the possibility to...

15 years ago

Thumbnail

Published


5 Resources for Simulation Performance
Following Guy's recent post with Tips for Simulation Performance, I thought I would provide a couple links for additional...

16 years ago

Thumbnail

Published


Bus Signals: Past, Present and Future
By Guy Rouleau The first time I used buses in Simulink, it was version 3.0 (R11). Bus signals and the way we use them in...

16 years ago

Thumbnail

Published


Current Events: Contest and Career Fair
This is a quick post to highlight two events going on RIGHT NOW! Programming Contest: Sailing Home I was just looking...

16 years ago

Thumbnail

Published


Tips for Simulation Performance
By Guy Rouleau One of the questions I hear the most often from Simulink users is What can I do to make my model run...

16 years ago

Thumbnail

Published


Parallel Computing with Simulink: Running Thousands of Simulations!
Update: In MATLAB R2017a the function PARSIM got introduced. For a better experience simulating models in parallel, we...

16 years ago

Thumbnail

Published


Model Explorer for Data Management and more
Update: Original videos have been removed form this blog post. To see similar content, please see this link: Improved Signal...

16 years ago

Thumbnail

Published


Current Events: EcoCAR Fall Workshop
Today I saw a Chevy Volt in the MathWorks parking garage. MathWorks is hosting the EcoCAR Fall Workshop. An internal...

16 years ago

Thumbnail

Published


A Balancing Robot, Simulink and the Virtual Conference
By Guy Rouleau I used to play with Lego’s as a kid, and when I learned about the Lego Mindstorms robotics kit I decided,...

16 years ago

Thumbnail

Published


R2010b is here!
MathWorks released R2010b on September 3rd, and it has been live on the downloads page since then. While there are...

16 years ago

Thumbnail

Published


Model Reference Variants
/* Publisher style MATLAB code */ pre.codeinput { background: #EEEEEE; padding: 10px; } @media print { ...

16 years ago

Thumbnail

Published


Visualizing Simscape data
By Guy Rouleau Today I want to introduce one of my favorite submissions on MATLAB Central, the Simscape Simulation...

16 years ago

Thumbnail

Published


Did I just get a different answer?
As part of any well designed Model Based Design work-flow, you need to ensure that you get the expected results...

16 years ago

Thumbnail

Published


Including MATLAB code in a simulation
By Guy Rouleau Some algorithms are easier to implement using MATLAB code than blocks. This is why multiple User Defined...

16 years ago

Thumbnail

Published


10 Simple Rules for High-Performance Generated Code
I was recently asked, "Do you have some kind of list or simple rules to get high performance generated code using Real-Time...

16 years ago

Thumbnail

Published


How to customize the Simulink Scope!
/* Publisher style MATLAB code */ pre.codeinput { background: #EEEEEE; padding: 10px; } @media print { ...

16 years ago

Thumbnail

Published


For Each Subsystem and Code Generation
Today Guy Rouleau is back to introduce the code generated from the For Each Subsystem. I created an example model...

16 years ago

Thumbnail

Published


Applying a Scalar Algorithm to a Vector
This week, Seth Popinchalk is visiting MathWorks Japan. Today's post is from Guy Rouleau: One of my favorite situations...

16 years ago

Thumbnail

Published


How to Learn Model-Based Design using Simulink
When my colleague Guy saw my previous post about the MathWorks Academic Virtual Conference, he told me how he learned...

16 years ago

Thumbnail

Published


Behind the Scenes at Academic Virtual Conference
You may have read my previous posts about the MathWorks Energy Virtual Conference. Did you wonder what happens behind...

16 years ago

Thumbnail

Load more