I need to model this equation in simulink.

2 views (last 30 days)
How can we integrate a signal from t to t+Ts in Simulink.

Answers (2)

Paul
Paul on 7 Sep 2022
Assuming the Qeustion is about specific values of t and Ts, i.e., integrate a signal over an interval ....
Put the integrator into an Enabled Subsystem. Set the enable signal input high at t and set it low at t + Ts.
  2 Comments
Nikhil Sengwa
Nikhil Sengwa on 7 Sep 2022
t is the clock time of matlab simulation. Will this work?
Paul
Paul on 7 Sep 2022
Now I don't understand the Question. At simulation time = t, what value should be computed? Can't compute something at t + Ts, because that's in the future. Maybe you want the integral of the signal from t - Ts to t?

Sign in to comment.


vamshi sai yele
vamshi sai yele on 14 Sep 2022
As per my understanding you want to set the limits to integrate a signal.
I have tried it from my end and the solution is just take an Integrator Limited block from library on to the canvas and then double click the integrator block to tailor it. You will catch fields “Upper saturation limit” and “Lower saturation limit”.
Enter the upper limit (t+Ts) and lower limit (t) respectively and click on apply followed by okay. Now an integrator block with upper and lower limits are designed and we are all set to connect it to the signal generator and add the scope at the end to check/verify the output.
To summarize,
Library>Simulink>Continuous> Integrated Limited>drag onto the canvas>double click> enter upper and lower limits>apply.
For your reference and other figure properties figure kindly refer to this link

Categories

Find more on Modeling in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!