Calculating average over a year time

1 回表示 (過去 30 日間)
Swasti Khuntia
Swasti Khuntia 2012 年 8 月 22 日
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 件のコメント
José-Luis
José-Luis 2012 年 8 月 22 日
Accumarray sounds like what you might need. What is the format of your time data?
Swasti Khuntia
Swasti Khuntia 2012 年 8 月 22 日
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

サインインしてコメントする。

採用された回答

Andrei Bobrov
Andrei Bobrov 2012 年 8 月 22 日
Power_year_average = trapz(Time_vector,Power_vector)/Time_vector(end);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by