Hi. I am just new to EEG and also MATLAB. Currently, I am having a 14 channels EEG data, however I need only signal from 2 specific channel for analysis. How can I load the only 2 channels into MATLAB using edfread? Then, I am able to convert the data into frequency domain with the following codes but it is converting all 14 channels. Therefore, what should I modify from the existing code to get only 2 channel of signal being converted?
[header,data] = edfread("data.edf");S = data;y=fft(S);PS=abs(y);N=length(S);fs=128;freq=(1:N)*fs/N;plot(freq,PS)
Your help will be highly appreciated. Thanks
Best Answer