Double integration in simulink
Afficher commentaires plus anciens
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
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
le 30 Jan 2018
mahmood hassan
le 30 Jan 2018
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
le 31 Jan 2018
mahmood hassan
le 3 Fév 2018
Jesus Velazquez
le 7 Fév 2018
Modifié(e) : Jesus Velazquez
le 7 Fév 2018

That one is a bit more complicated
Réponses (1)
Sean de Wolski
le 29 Jan 2018
integral2(@(x,y)10+zeros(size(x)), 0, 10, 0, 10)
1 commentaire
mahmood hassan
le 30 Jan 2018
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!

