Integration of numerical data
2 ビュー (過去 30 日間)
古いコメントを表示
I have a set of numerical data stored in a vector D, and a second vector of positions z, of equal length.
If i wish to calculate the integral shown in the picture, how would this be done?
0 件のコメント
回答 (2 件)
Star Strider
2019 年 5 月 27 日
For vectors of data, the best option would be the trapz (link) or the related cumtrapz functions, depending on the result you want.
1 件のコメント
Abdul Basith Ashraf
2020 年 8 月 31 日
I have not so regular data (x and y are returned from ode45).
How can I visualize the rectangles under the curve to see how good trapz is doing?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!