creating array with specific condition
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
sermet OGUTCU
il 28 Dic 2021
Risposto: sermet OGUTCU
il 29 Dic 2021
data= 689 x 1
% moving average values for the last 50 data
data_average(1)= mean(data(1));
data_average(2)= mean(data(1:2));
data_average(50)= mean(data(1:50));
.
data_average(51)= mean(data(2:51));
data_average(52)= mean(data(3:52));
.
data_average(689)=mean(data(640:689));
How I can vectorize this computation?
0 Commenti
Risposta accettata
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!