How to split EEG signal into different chunks?

조회 수: 1 (최근 30일)
Biomedical
Biomedical 2013년 7월 31일
Total Number of samples 9600
want to split into four equal parts

채택된 답변

Image Analyst
Image Analyst 2013년 7월 31일
Or if you want 4 1-D arrays:
part1 = eegSignal(1:2400);
part2 = eegSignal(2401:4800);
part3 = eegSignal(4801:7200);
part4 = eegSignal(7201:end);
  댓글 수: 1
Biomedical
Biomedical 2013년 8월 1일
편집: Biomedical 2013년 8월 1일
Thanks for this but mat file structure is 65X9600 so i want to split it into 65*2400 ,65*2400 ,65*2400 and 65*2400 as part 1 part 2 part 3 and part4 ..
Kindly, help me out.

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

추가 답변 (1개)

Wayne King
Wayne King 2013년 7월 31일
x = randn(9600,1);
len = 9600/4;
x1 = reshape(x,len,4);
x1 is a matrix with 4 columns, each one is 9600/4 samples in length.

카테고리

Help CenterFile Exchange에서 Hilbert and Walsh-Hadamard Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by