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

Jesus Velazquez
Jesus Velazquez 2018년 1월 29일
편집: Jesus Velazquez 2018년 1월 29일
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 2018년 1월 30일
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 2018년 1월 30일
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 2018년 1월 30일
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 2018년 1월 31일
Thanks a lot, Jesus Velazquez. I got your point.
mahmood hassan
mahmood hassan 2018년 2월 3일
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 2018년 2월 7일
편집: Jesus Velazquez 2018년 2월 7일
That one is a bit more complicated

댓글을 달려면 로그인하십시오.

답변 (1개)

Sean de Wolski
Sean de Wolski 2018년 1월 29일

0 개 추천

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

댓글 수: 1

mahmood hassan
mahmood hassan 2018년 1월 30일
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 General Applications에 대해 자세히 알아보기

태그

질문:

2018년 1월 29일

편집:

2018년 2월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by