Matlab filter max value every 60 elements

조회 수: 8 (최근 30일)
Eren Atar
Eren Atar 2022년 6월 14일
답변: KSSV 2022년 6월 14일
Hello I want to extract some data, aim is to look at a day in seconds with temperature/value (86400x1 double) and extract all max values within a minute (all 60sec).
I dont know how to "split" and get a max value for every 60 elements.
The output should be 1x1440.

채택된 답변

KSSV
KSSV 2022년 6월 14일
A = rand(24*60*60,1);
B = reshape(A,[],60) ;
iwant = max(B,[],2) ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by