Matlab filter max value every 60 elements

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.

 Akzeptierte Antwort

KSSV
KSSV am 14 Jun. 2022

0 Stimmen

A = rand(24*60*60,1);
B = reshape(A,[],60) ;
iwant = max(B,[],2) ;

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020b

Gefragt:

am 14 Jun. 2022

Beantwortet:

am 14 Jun. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by