Risposto
Simulink Counter
You say: "I wish to use the clock in a user defined function" What about using the "clock" function: http://www.mathwor...

oltre 14 anni fa | 0

Risposto
Integrator in simulink
Here is how to do it: http://www.mathworks.com/help/toolbox/simulink/slref/integratorlimited.html

oltre 14 anni fa | 0

| accettato

Risposto
Problem with controlled pneumatic pressure source
It is difficult to give an accurate answer without seeing the model. Is it possible that, at one node, you have a volume with...

oltre 14 anni fa | 0

Risposto
Nonlinear equations within Simulink Coder
You can generate code for models with non-linearities. For example generate code for a model with a saturated integrator... ...

oltre 14 anni fa | 1

Risposto
Differential equation in embedded block in simulink ?
If you need to generate code and consequently use the EML block, you might want to use the trick described here: http://www.m...

oltre 14 anni fa | 2

Risposto
Active circuit transfer functions in terms of variables?
See my article here on this topic: http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-...

oltre 14 anni fa | 0

Risposto
2d plot from simulink too GUI axes
Register an Event Listener to send the data to ghe GUI everytime the block output is updated: http://www.mathworks.com/help/t...

oltre 14 anni fa | 3

| accettato

Pubblicato


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...

oltre 14 anni fa

Thumbnail

Risposto
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...

oltre 14 anni fa | 0

| accettato

Risposto
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...

oltre 14 anni fa | 1

| accettato

Pubblicato


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...

oltre 14 anni fa

Thumbnail

Pubblicato


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...

oltre 14 anni fa

Thumbnail

Risolto


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

oltre 14 anni fa

Risposto
change the color of an input port from a callback function
yes, use set_param.

oltre 14 anni fa | 0

| accettato

Risposto
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

oltre 14 anni fa | 1

| accettato

Pubblicato


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...

oltre 14 anni fa

Thumbnail

Risposto
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...

oltre 14 anni fa | 1

| accettato

Risolto


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...

oltre 14 anni fa

Risposto
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...

oltre 14 anni fa | 0

Risposto
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...

oltre 14 anni fa | 0

Risposto
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...

oltre 14 anni fa | 0

Pubblicato


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...

oltre 14 anni fa

Thumbnail

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

oltre 14 anni fa | 2

Risolto


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

oltre 14 anni fa

Risposto
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...

oltre 14 anni fa | 1

Risposto
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...

oltre 14 anni fa | 0

Risposto
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...

oltre 14 anni fa | 0

Risposto
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...

oltre 14 anni fa | 0

Pubblicato


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...

oltre 14 anni fa

Thumbnail

Risolto


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 ...

oltre 14 anni fa

Carica altro