Publié le


Legends for Simulink Scopes
Today my colleague Roshin Kadanna Pally is back to talk about additions he made to the Simulink Scope in R2012a. Legends...

environ 14 ans il y a

Thumbnail

Réponse apportée
Accessing inputs to a masked block from the mask initialization
I explain here why what you are trying to accomplish is probably a bad idea: http://blogs.mathworks.com/seth/2011/03/08/how-d...

environ 14 ans il y a | 0

| A accepté

Réponse apportée
How to solve a differential equations' system in SIMULINK
What you describe sounds correct. The following posts gives a good example of how to draw ODEs in Simulink: http://blogs.math...

environ 14 ans il y a | 1

| A accepté

Publié le


Running Simulink models on LEGO MINDSTORMS NXT
As you probably already know, MATLAB R2012a is now available for download! One of my favorite feature in this release is...

environ 14 ans il y a

Thumbnail

Publié le


Sous-vide Cooking with Simulink Part 2
Here is the continuation of my sous-vide cooking story I began to tell in the last post. Hardware Implementation As...

environ 14 ans il y a

Thumbnail

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

environ 14 ans il y a

Réponse apportée
change the color of an input port from a callback function
yes, use set_param.

environ 14 ans il y a | 0

| A accepté

Réponse apportée
change the color of a block based on its output
It is possible using an event listener: http://www.mathworks.com/help/toolbox/simulink/slref/add_exec_event_listener.html

environ 14 ans il y a | 1

| A accepté

Publié le


Sous-Vide Cooking with Simulink Part 1
This week I am sharing the first part of a story about what I do with Simulink during weekends! Introduction Last...

environ 14 ans il y a

Thumbnail

Réponse apportée
MUX blocks and RTW code generation
Good question! The Mux block is virtual. The line coming out of the Mux block is just a visual representation. This is why yo...

environ 14 ans il y a | 1

| A accepté

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 14 ans il y a

Réponse apportée
Model of cycling: closed loop with automatic adjustment of knee and pedal angles
I am not sure I understand what you are looking for. It looks like you did a very good job at computing the knee and hip torq...

plus de 14 ans il y a | 0

Réponse apportée
custom built transfer function block in simulink
After you open the block dialog, click on the "Help" button... it should explain everything. You can find the same here: h...

plus de 14 ans il y a | 0

Réponse apportée
SIMULINK Scope ylabel
I recommend another approach. Since you need that for a publication, you do not need the Simulink Scope to look like that du...

plus de 14 ans il y a | 0

Publié le


Using Discrete Data as an input to your Simulink model
August 2019 Update: See blog post Loading Signals in Timetable Format for an improved way to address the issue described in...

plus de 14 ans il y a

Thumbnail

Réponse apportée
Multiprocessing in Simulink
If you want Simulink to take advantage of multiple processors, you can use the parallel computing toolbox. This will allow yo...

plus de 14 ans il y a | 2

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 14 ans il y a

Réponse apportée
Conditionals and triggered subsystems in Simulink
Based on the description, Enabled subsystem sounds appropriate. The Enabled block allows you to hold or reset states when you en...

plus de 14 ans il y a | 1

Réponse apportée
Error using 4-way valve
The block should provide a clear error message explaining that the pressure-flow characteristic should have at least 4 values in...

plus de 14 ans il y a | 0

Réponse apportée
Error using 4-way valve
I am able to reproduce. This is definitely unexpected. Please contact technical support with your model to report this proble...

plus de 14 ans il y a | 0

Réponse apportée
Outport used in Real-Time Multicore Systems
I am not sure what is the best way to log data in an model configured for concurrent execution. I would recommend contacting tec...

plus de 14 ans il y a | 0

Publié le


Applying Motion to SimMechanics Models
One of the features I like about SimMechanics is the ability to specify the motion of a system without having to think about...

plus de 14 ans il y a

Thumbnail

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 14 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 14 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 14 ans il y a

Réponse apportée
Problem with "initial conditions failed to converge" when connecting rotational to translational system
I looked at the model you linked, but the custom file is missing, like the parameter values. Adding stiffness and damping ma...

plus de 14 ans il y a | 0

Réponse apportée
Integrate in embedded matlab function
If your EML block is continuous, I recommend outputting the "dx" signal, feed it to an Integrator block and connect the output o...

plus de 14 ans il y a | 0

Réponse apportée
Difference between decimation and sample time
Decimation: The scope will show only 1 point every X time steps. Whatever the rate of the input signal, with a decimation of 5, ...

plus de 14 ans il y a | 1

| A accepté

Publié le


Advanced S-function Techniques: Scheduling Future Events
Today I will describe how to use a variable sample time s-function to schedule events in the future. This topic is fairly...

plus de 14 ans il y a

Thumbnail

Réponse apportée
Systems of Differential Equations
Seth published a good post on this topic: http://blogs.mathworks.com/seth/2008/05/23/how-to-draw-odes-in-simulink/

plus de 14 ans il y a | 0

| A accepté

Charger plus