How do I write a function that performs moving average using data from a text file? The equation I have to use is mentioned in the body and i do not understand what function to create.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
3011
am 18 Okt. 2015
Beantwortet: Walter Roberson
am 18 Okt. 2015
Write a function that performs the moving average, equation (2), of any 1- dimensional input data for any non-zero and positive order M. Be sure to add M −1 zeros at the beginning of the data so that your output data will be the same length as your input data.
y[n] = 1/M Σx[n − k]
lower limit k= 0 upper limit M −1
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu QAM 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!