Double integration in simulink

Kindly guide me When I am doing double integral of constant 10 with time 10 sec it gives the result of 500 but when I am solving it by hand it gives the result of 1000. I am solving it as ---> integral_0^10 integral_0^10 10 dx dy = 1000 Images of solution and simulink is attached

7 commentaires

Jesus Velazquez
Jesus Velazquez le 29 Jan 2018
Modifié(e) : Jesus Velazquez le 29 Jan 2018
What you have in Simulink is not the same as your original integral.
In Simulink, you have:
10 int_0^10 x dt
That results in 10x^2/2, which would yield 10(100)/2 = 500
I really don't know how you can do what you want.
mahmood hassan
mahmood hassan le 30 Jan 2018
Yes, What I have in Simulink is not the same as my original double integral. as integral_0^10 integral_0^10 (10 )dx dy = 1000 always gives the result of 1000 but why simulink is giving the result of 500
mahmood hassan
mahmood hassan le 30 Jan 2018
I can not understand your method to solve double integral of 10 with initial time 0 and final time 10. you wrote this way 10 int_0^10 x dt That results in 10x^2/2, which would yield 10(100)/2 = 500 can you explain it step by step?
Jesus Velazquez
Jesus Velazquez le 30 Jan 2018
simulink will integrate twice, but over the same variable (time), that's why you are never going to get 1000.
Your first integrator does int 10 dt, then it goes into the second one, which does int 10 x dt. That results in 10x^2/2
mahmood hassan
mahmood hassan le 31 Jan 2018
Thanks a lot, Jesus Velazquez. I got your point.
mahmood hassan
mahmood hassan le 3 Fév 2018
Hi, May you guide me when I am doing a double integration of step function having properties (initial value =10, final value =5, step time =5) over total time = 10s.
why it does not gives the result of
result = 5 int_0^5 x dt + 10 int_5^10 x dt
result = 5x^2/2 + 10x^2/2
result = 62.5+375=437.5
But result in simulink is 312.5.
I will be thankful to you.
<<
>>
Jesus Velazquez
Jesus Velazquez le 7 Fév 2018
Modifié(e) : Jesus Velazquez le 7 Fév 2018
That one is a bit more complicated

Connectez-vous pour commenter.

Réponses (1)

Sean de Wolski
Sean de Wolski le 29 Jan 2018

0 votes

integral2(@(x,y)10+zeros(size(x)), 0, 10, 0, 10)

1 commentaire

mahmood hassan
mahmood hassan le 30 Jan 2018
I want to do double integral by simulink not by coding. kindly explain about the difference in Answer of double integral by simulink and by hand as shown in pix

Connectez-vous pour commenter.

Catégories

En savoir plus sur General Applications dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by