BCI Data Analysis code

1 vue (au cours des 30 derniers jours)
Deep Tayal
Deep Tayal le 8 Nov 2013
Commenté : Deep Tayal le 20 Nov 2013
I am working on EEG signal analysis. I have a data set which is class 1 for EEG signal. How do I break that data into set of chunks of data which i would use for pre-processing.

Réponse acceptée

nsprt nsprto
nsprt nsprto le 12 Nov 2013
Modifié(e) : nsprt nsprto le 12 Nov 2013
Make a function to get data chunks and inside it put a function for processing
function block=chunk(data,no_samples_block,length_of_block)
[m n]=size(data) %m: samples & n: channels
s=0;
for i=1:m/no_samples_block
block=data(1+s:s+samples_block,:);
s=s+length_of_block
processing(block) % function to process one chunk
end
end
or you can seperate both functions and then put them in main function
nsprt
  1 commentaire
Deep Tayal
Deep Tayal le 20 Nov 2013
thx for the reply

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by