MATLAB: How Can I create a time varying equation in Simulink

time varying equation

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.

Best Answer

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