Calculating average over a year time
1 view (last 30 days)
Show older comments
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 Comments
José-Luis
on 22 Aug 2012
Accumarray sounds like what you might need. What is the format of your time data?
Accepted Answer
Andrei Bobrov
on 22 Aug 2012
Power_year_average = trapz(Time_vector,Power_vector)/Time_vector(end);
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!