How to solve this integral with MATLAB?

1 view (last 30 days)
Mylu
Mylu on 26 Oct 2016
Answered: Torsten on 26 Oct 2016
Hey there,
I need to solve this equation Z_real(omega) for 47 values of omega.
The problem is that I am struggling with that integral. I do not know how gamma(tau) looks like. All I have are 500 data points of (tau; gamma(tau)). And I assume that gamma(tau) becomes 0, if tau goes to infinity.
I tried several aporaches, but non of them calculated reasonable results. Either the implementation is terribly wrong (hopefully) or the data is shitty (hopefully not) :)
What is the best strategy to solve this equation/integral with MATLAB?
Thanks for your effort and have a good day!

Answers (1)

Torsten
Torsten on 26 Oct 2016
Use MATLAB's "trapz".
Best wishes
Torsten.

Community Treasure Hunt

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

Start Hunting!