Taking Mean/average

1 Ansicht (letzte 30 Tage)
Kapal
Kapal am 29 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 29 Apr. 2016
I have a matrix V of 262080x1 in which I want to take average of first 15 values and store in new matrix say V1 then take next 15 values (16-30) take average and store in V1 again and this goes on to size of V.

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 29 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 29 Apr. 2016
v=rand(262080,1); %--Example----
v1=mean(reshape(v,15,[]))

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by