Plot whole integration process

조회 수: 15 (최근 30일)
Simon
Simon 2014년 6월 30일
댓글: Simon 2014년 6월 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
  댓글 수: 1
Simon
Simon 2014년 6월 30일
Oh didn't find that one... Thanks!

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

추가 답변 (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