Common average refrencing (CAR) application on EEG signals.

I have a matrix of dimensions 450000*60 of a one class eeg signal. I have to apply Common average referencing (CAR) on it. Matrix dimension 45000*60 where 1:60 is the no. electrodes from 1 to 60 and 45000 is the total number of samples. Each trial consists of 1000 samples. This is to be calculated trial wise Can anybody help me with the code?

 채택된 답변

Debanjan Botthakur
Debanjan Botthakur 2018년 3월 16일
편집: Debanjan Botthakur 2018년 3월 16일

0 개 추천

You can try
for i=1:60 signal2(:,i)=signal1(:,i)-mean(signal1,2); end

댓글 수: 1

hello i just want to ask that why do you take 2 there in mean(signal1,2) ?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

zaineb alhakeem
zaineb alhakeem 2019년 5월 7일

0 개 추천

It means the average of the channels

카테고리

도움말 센터File Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by