Plot whole integration process

2 次查看(过去 30 天)
Hi all,
How do I plot a whole Integration process like displayed in the picture? (thin blue graph) My data are from vectors x=[TIME], y=[POWER], so I can see the energy consumption at a certain time. I tried to use trapz, but it just gives me the final value.
Thanks!
Simon

采纳的回答

A Jenkins
A Jenkins 2014-6-30
Do you want the cumulative integral?
help cumtrapz

更多回答(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