Could you please help me generate following function and solve the integral?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Muneeb Fida
am 31 Mai 2022
Beantwortet: Bjorn Gustavsson
am 1 Jun. 2022
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 Kommentare
Bjorn Gustavsson
am 1 Jun. 2022
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.
Akzeptierte Antwort
Bjorn Gustavsson
am 1 Jun. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!