moving average in eeglab

Greetings, I have 19 22x2000 matrixs and i want make a 22x2000 matrix by moving-average from 19 22x2000 matrixs.A matrix is used for plot erpimage.Is there any simple command or way to do that. Your help is highly appreciated.
Thanks and regards Chuong Tran

2 个评论

How these matrices are stored?
i have eeg data, it is matrix type. And i extract it follow each event . i have 19 event so i have 19 matrix. i don't need store matrix

请先登录,再进行评论。

回答(1 个)

Look at this example
m1=rand(22,2000);
m2=rand(22,2000);
m3=rand(22,2000);
a={m1,m2,m3}
b=cat(3,a{:});
out=mean(b,3)

类别

帮助中心File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息

提问:

2014-12-4

评论:

2014-12-4

Community Treasure Hunt

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

Start Hunting!

Translated by