Plot whole integration process

4 vues (au cours des 30 derniers jours)
Simon
Simon le 30 Juin 2014
Commenté : Simon le 30 Juin 2014
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

Réponse acceptée

A Jenkins
A Jenkins le 30 Juin 2014
Do you want the cumulative integral?
help cumtrapz
  1 commentaire
Simon
Simon le 30 Juin 2014
Oh didn't find that one... Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differentiation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by