Calculating average over a year time

4 vues (au cours des 30 derniers jours)
Swasti Khuntia
Swasti Khuntia le 22 Août 2012
Hello All,
This question might be a very simple one but still I couldn't get the idea as how to do it.
I have a time vector and output power vector (Both yearly data) I want to calculate the avg. output power over the year.
Any suggestion is highly solicited !!!!!
  2 commentaires
José-Luis
José-Luis le 22 Août 2012
Accumarray sounds like what you might need. What is the format of your time data?
Swasti Khuntia
Swasti Khuntia le 22 Août 2012
Time vector is in format of [0,3600,..., 31536000] Power vector is [0, 564.34,..., 0] Both have 8760x1 size.
I guess this data is enough.
Thanks

Connectez-vous pour commenter.

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 22 Août 2012
Power_year_average = trapz(Time_vector,Power_vector)/Time_vector(end);

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