Double integration in simulink
Mostrar comentarios más antiguos
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 comentarios
Jesus Velazquez
el 29 de En. de 2018
Editada: Jesus Velazquez
el 29 de En. de 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
el 30 de En. de 2018
mahmood hassan
el 30 de En. de 2018
Jesus Velazquez
el 30 de En. de 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
el 31 de En. de 2018
mahmood hassan
el 3 de Feb. de 2018
Jesus Velazquez
el 7 de Feb. de 2018
Editada: Jesus Velazquez
el 7 de Feb. de 2018

That one is a bit more complicated
Respuestas (1)
Sean de Wolski
el 29 de En. de 2018
integral2(@(x,y)10+zeros(size(x)), 0, 10, 0, 10)
1 comentario
mahmood hassan
el 30 de En. de 2018
Categorías
Más información sobre General Applications en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

