Matlab filter max value every 60 elements

7 vues (au cours des 30 derniers jours)
Eren Atar
Eren Atar le 14 Juin 2022
Réponse apportée : KSSV le 14 Juin 2022
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.

Réponse acceptée

KSSV
KSSV le 14 Juin 2022
A = rand(24*60*60,1);
B = reshape(A,[],60) ;
iwant = max(B,[],2) ;

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by