Take a fixed window average of large column vector?
조회 수: 1 (최근 30일)
이전 댓글 표시
Im trying to shrink the size of a column vector by averaging every 10 terms inside. At the moment it has about 7000 terms inside and I would like to shrink it by a factor of 10. I have been trying to use mean reshape command but to no avail. Can anyone help?
thanks
댓글 수: 0
답변 (1개)
Ameer Hamza
2020년 11월 12일
This shows an example
x = rand(7000,1);
y = mean(reshape(x, 10, []))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!