Simulink doubt

1 回表示 (過去 30 日間)
Danilo NASCIMENTO
Danilo NASCIMENTO 2012 年 3 月 5 日
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
Danilo NASCIMENTO 2012 年 3 月 5 日
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
Danilo NASCIMENTO 2012 年 3 月 5 日
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 Center および File ExchangeSchedule Model Components についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by