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

circa 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

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

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

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

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

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

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

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

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

circa 14 anni fa | 2

Risolto


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

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

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

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

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

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

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

circa 14 anni fa

Risolto


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

circa 14 anni fa

Risolto


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

circa 14 anni fa

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

circa 14 anni fa | 0

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

circa 14 anni fa | 0

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

circa 14 anni fa | 1

| accettato

Pubblicato


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

circa 14 anni fa

Thumbnail

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

circa 14 anni fa | 0

| accettato

Risposto
Problem with "initial conditions failed to converge" when connecting rotational to translational system
Your code looks good. I think that the issue is that it often (depending on how it is connected) lead to index-2 DAE. The eq...

circa 14 anni fa | 2

Risposto
Simulink Feedback Loop (Function-Call feedback Latch)
The "Function-Call feedback latch" option is available only if the Inport is inside a function call subsystem. If you want a del...

circa 14 anni fa | 0

Risposto
Replacement for simset?
The main reason why the 'SrcWorkspace' is not documented anymore is because it is not compatible with the parallel toolbox. T...

circa 14 anni fa | 0

| accettato

Risposto
Finding the velocity from displacement
I like to use a filtered derivative to do that. A transfer function in the form s/(tau*s+1)^2 with the right "tau" will give...

circa 14 anni fa | 0

Risposto
How to include fluid inertia in a pipe that oscillates linearly in Simscape/SimHydraulic
With SimHydraulics, the Segmented Pipeline block should help. It simulates a hydraulic pipeline with resistive, fluid inerti...

circa 14 anni fa | 0

Pubblicato


Model-Based Design of a Dicycle
The other day I found this video: If you watch carefully, you will see around 1:50 that they used Simulink to design...

circa 14 anni fa

Thumbnail

Carica altro