Double integration in simulink
Show older comments
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 Comments
Jesus Velazquez
on 29 Jan 2018
Edited: Jesus Velazquez
on 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
on 30 Jan 2018
mahmood hassan
on 30 Jan 2018
Jesus Velazquez
on 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
on 31 Jan 2018
mahmood hassan
on 3 Feb 2018
Jesus Velazquez
on 7 Feb 2018
Edited: Jesus Velazquez
on 7 Feb 2018

That one is a bit more complicated
Answers (1)
Sean de Wolski
on 29 Jan 2018
integral2(@(x,y)10+zeros(size(x)), 0, 10, 0, 10)
1 Comment
mahmood hassan
on 30 Jan 2018
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
