Numerical integration in Matlab

Evaluate the integral as a function of x and t. I want to perform numerical integration over x. The integral is:
Can someone help me solve it using MATLAB?
Thanks in advance.
Raj.

댓글 수: 5

Walter Roberson
Walter Roberson 2020년 9월 19일
integral() or trapz()
hint: use the ./ operator not the / operator
Raj Patel
Raj Patel 2020년 9월 19일
편집: Raj Patel 2020년 9월 19일
Thanks Walter! Although I am not sure how to integrate it as a function of "x" and "t".
Walter Roberson
Walter Roberson 2020년 9월 19일
There is only a single integration symbol. You can only integrate over one variable. We cannot tell which variable as the d* was left out. It would make the most sense if it were x, which would also be consistent with your statement that you want to numerically integrate over x.
Because you are integrating over a single variable, you need a specific numeric t if you want to do numeric integration. If you want the result with t as a variable then you would have to use symbolic integration.
Raj Patel
Raj Patel 2020년 9월 19일
Ok. I'll try using symbolic integration.
Walter Roberson
Walter Roberson 2020년 9월 19일
Note that the integration is discontinuous as t crosses 0

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품

질문:

2020년 9월 19일

댓글:

2020년 9월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by