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.

 Risposta accettata

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

5 Commenti

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

Accedi per commentare.

Più risposte (1)

Categorie

Scopri di più su Modeling in Centro assistenza e File Exchange

Richiesto:

il 27 Feb 2014

Commentato:

il 27 Feb 2014

Community Treasure Hunt

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

Start Hunting!

Translated by