How Can I create a time varying equation in Simulink?

Hi
How can I make a time varying equation in Simulink?
p(t) = 10 + 11*exp(−2(t-0.5))− 12*exp(−3 (t-0.5))
thanks a lot.

 採用された回答

Paul
Paul 2014 年 2 月 27 日

0 投票

Use a clock block for t. The other operations can be done with add, product, gain and math function block for exp.

5 件のコメント

Hosein
Hosein 2014 年 2 月 27 日
Thanks, would you show exp(−2(t-0.5)) in Simulink?
Paul
Paul 2014 年 2 月 27 日
Hosein
Hosein 2014 年 2 月 27 日
thanks a lot Paul. Regards.
Paul
Paul 2014 年 2 月 27 日
Np, another solution would be to use a user defined function (Fcn block) and type the equation with t as input.
Hosein
Hosein 2014 年 2 月 27 日
thanks a lot Pual.

サインインしてコメントする。

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 27 日

0 投票

You will need
  1. Math function block
  2. clock block
  3. sum block

カテゴリ

ヘルプ センター および File ExchangeModeling についてさらに検索

質問済み:

2014 年 2 月 27 日

コメント済み:

2014 年 2 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by