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 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 4 日
How these matrices are stored?
Chuong
Chuong 2014 年 12 月 4 日
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 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 4 日

0 投票

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)

1 件のコメント

Chuong
Chuong 2014 年 12 月 4 日
thank you

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeEEG/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