Simulink doubt

1 次查看(过去 30 天)
Danilo NASCIMENTO
Guys is there anyway of doing an operation in simulink one second after it has begun?

采纳的回答

TAB
TAB 2012-3-6
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.

更多回答(3 个)

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

Danilo NASCIMENTO
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 个评论
Kaustubha Govind
Kaustubha Govind 2012-3-5
I think my answer here may apply to you: http://www.mathworks.in/matlabcentral/answers/13200-shifting-a-wave-in-time-domain-in-simulink

请先登录,再进行评论。


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

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by