필터 지우기
필터 지우기

I have a data in cell array of 1330 rows x 401 columns, I want to take the mean in steps of 5 and have the new matrix as 266 x 401 instead of 1330 x 410.Thanks for your help

조회 수: 1 (최근 30일)
I have a data in cell array of 1330 rows x 401 columns, I want to take the mean in steps of 5 and have the new matrix as 266 x 401 instead of 1330 x 410. I will also need another code to reduce the class labels from 1330 x1 to match the data. The class labels should become 266 x 1 cell array.
Thanks for your help

채택된 답변

dpb
dpb 2022년 6월 12일
N=5;
xmn=reshape(mean(reshape(x,N,[])),[],size(x,2));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by