필터 지우기
필터 지우기

BCI Data Analysis code

조회 수: 3 (최근 30일)
Deep Tayal
Deep Tayal 2013년 11월 8일
댓글: Deep Tayal 2013년 11월 20일
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.

채택된 답변

nsprt nsprto
nsprt nsprto 2013년 11월 12일
편집: nsprt nsprto 2013년 11월 12일
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
Deep Tayal
Deep Tayal 2013년 11월 20일
thx for the reply

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

추가 답변 (0개)

카테고리

Help CenterFile 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