Calculating average over a year time
조회 수: 2 (최근 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!