Running Average of a large data set

1 Ansicht (letzte 30 Tage)
Avik Mahata
Avik Mahata am 7 Okt. 2022
Beantwortet: Jan am 7 Okt. 2022
I have a large dataset (Please see attached file). Column-1 is time in picosecond , and Column-2 is a autocorrelation. I need a running average over a time window T = 1 ps. In column 1 , data has been collected every 0.01 ps, so every 101 rows are data for 1 ps. Any suggestions will be really helpful.

Antworten (1)

Jan
Jan am 7 Okt. 2022
A = readmatrix(filename);
A(:, 3) = movmean(A(:, 2), 101);

Kategorien

Mehr zu Fourier Analysis and Filtering 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