mscohere for each frequency band_EEG data

9 次查看(过去 30 天)
Hi all,
I'am working with the following code to get coherence values. I get some values but how can I get the measure for each frequency band? I tried to define F as F=[8.05.13] for alpha and F= [1.0.5.4] for delta. However, I get exactly the same values for alpha and delta. Any help would be greatly appreciated.
ch1= 7 % left electrode
ch2= 48 % right electrode
window = 2*EEG.srate;
nooverlap = 0;
nfft =window*2;
fs= EEG.srate;
F= [8.05.13]% change this for different bands
[Cxy, F] = mscohere (EEG.data(ch1,;),(EEG.data(ch2,;)window, nooverlap,nftt,fs);
  5 个评论
belen calvo
belen calvo 2021-1-16
THANKS! yes, now I get different coherence values for each band. The only problem now is that I only get as output two values-I guess one for 8 and another one for 13 in F= [8 13]. I would like to get all the coherence values in the range going from 8 to 13 in that band (e.g. alpha). I tried F= [8:13] and it returns 6 values..not sure I'm picking what I want though. I'm gonna keep on reading about mscohere and papers that have used this function.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by