Using mean function
이전 댓글 표시
Hello, I am new to matlab and I try to find a solution to a simple problem I have.
I have a column of values and I want to calculate mean values with a certain step, e.g. calculate the mean of values 1-6, then the mean of values 7-12 etc ...
Can someone please give any ideas on how to do this?
Thank you, George
채택된 답변
추가 답변 (2개)
bym
2011년 5월 28일
assuming x is the vector:
mean(x(1:7));
mean(x(7:12));
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!