Simulink doubt

5 vues (au cours des 30 derniers jours)
Danilo NASCIMENTO
Danilo NASCIMENTO le 5 Mar 2012
Guys is there anyway of doing an operation in simulink one second after it has begun?

Réponse acceptée

TAB
TAB le 6 Mar 2012
Put your system in 'Enabled Subsystem' and enable it after 1 sec using a unit delay block. Someting like this
Here 'Initial Condition' of unit delay block is 0, so till 1st sample time (1 Sec) its output will be 0 disabling the subsystem.
From 1 sec onwords its output will be 1 which will enable the subsystem.

Plus de réponses (3)

Kaustubha Govind
Kaustubha Govind le 5 Mar 2012
It's not clear exactly what you're trying to do, but my best bet is to suggest the Unit Delay block.

Danilo NASCIMENTO
Danilo NASCIMENTO le 5 Mar 2012
Let me explain to you better. Let's say we have a signal A and B. The first one is a signal that within the interval 0-1s it has some undesirable noise. And the second is a signal that within this same interval it is zero. And I want to divide this two signals. And there is a problem of this division by zero within this interval. So I want to divide this two signals from 1 second to 10.
  1 commentaire
Kaustubha Govind
Kaustubha Govind le 5 Mar 2012
I think my answer here may apply to you: http://www.mathworks.in/matlabcentral/answers/13200-shifting-a-wave-in-time-domain-in-simulink

Connectez-vous pour commenter.


Danilo NASCIMENTO
Danilo NASCIMENTO le 5 Mar 2012
I guess what this guy wants to do is impossible, there is no way of shifting a signal from 2 s to 0. The computer will generate the amplitude of the signal at instant 2 only when it gets up to instant 2. By the time it is at instant 0 there is no way of knowing how the amplitude of this signal will be. It is like to predict the future. My situation is different from this. My both signals at any time get to steady-state condition and this is what I want, these two values.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by