Taking Mean/average
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a matrix V of 262080x1 in which I want to take average of first 15 values and store in new matrix say V1 then take next 15 values (16-30) take average and store in V1 again and this goes on to size of V.
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2016년 4월 29일
편집: Azzi Abdelmalek
2016년 4월 29일
v=rand(262080,1); %--Example----
v1=mean(reshape(v,15,[]))
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!