Could you please help me generate following function and solve the integral?

조회 수: 1 (최근 30일)
I want to solve this integral, and for that i need to create a function for this integral. Please look at the screenshot in the attachement.
could you please help me create this function and eventually solve this integral?
This integral is supposed to find area under the curve for the peaks in the plot, the screenshot of Plot is also attached.
  댓글 수: 2
Bjorn Gustavsson
Bjorn Gustavsson 2022년 6월 1일
Look at the help and documentation to integral. Since we don't know what your gamma-function is that is about as much as I can imagine we can help.
Muneeb Fida
Muneeb Fida 2022년 6월 1일
Thanks, but the values of the gamma-function could be taken from the y-axis of the plot (screenshot of plot is also attached), does that give you more Info to help me furhter, or could i somehow work my way around to solve this with the given Information only?
BR,
Muneeb Fida

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

채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2022년 6월 1일
To calculate the area under a curve specified by numerical arrays (x and y) you can use trapz:
A = trapz(x,y);
% Or in your case:
A = trapz(tau,gamma);
HTH

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by