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.

 Respuesta aceptada

Paul
Paul el 27 de Feb. de 2014
Use a clock block for t. The other operations can be done with add, product, gain and math function block for exp.

5 comentarios

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

Iniciar sesión para comentar.

Más respuestas (1)

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

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Preguntada:

el 27 de Feb. de 2014

Comentada:

el 27 de Feb. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by