How Can I create a time varying equation in Simulink?

28 次查看(过去 30 天)
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
Use a clock block for t. The other operations can be done with add, product, gain and math function block for exp.
  5 个评论
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.

请先登录,再进行评论。

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-2-27
You will need
  1. Math function block
  2. clock block
  3. sum block

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by