Calculating average over a year time
4 次查看(过去 30 天)
显示 更早的评论
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
2012-8-22
Accumarray sounds like what you might need. What is the format of your time data?
采纳的回答
Andrei Bobrov
2012-8-22
Power_year_average = trapz(Time_vector,Power_vector)/Time_vector(end);
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!