Running Average of a large data set

조회 수: 1 (최근 30일)
Avik Mahata
Avik Mahata 2022년 10월 7일
답변: Jan 2022년 10월 7일
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.

답변 (1개)

Jan
Jan 2022년 10월 7일
A = readmatrix(filename);
A(:, 3) = movmean(A(:, 2), 101);

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by