필터 지우기
필터 지우기

Time Series Partitioning of EMG data

조회 수: 1 (최근 30일)
C PRASAD
C PRASAD 2021년 9월 14일
댓글: Mathieu NOE 2021년 12월 2일
I have emg raw data of size 40000*1.I would like to segment the time channel in such a way that each channel consist of 2000 sample and plot it. total time should be divided into 20 channels where each channel consist of 2000 samples.can any one help me

채택된 답변

Mathieu NOE
Mathieu NOE 2021년 9월 15일
hello
see example below :
samples = 40000;
buffer = 2000;
data = rand(samples,1)+10*((1:samples)/samples)'; % noisy ramp signal (dummy data)
for ci = 1:fix(samples/buffer)
start_index = 1+(ci-1)*buffer;
stop_index = min(start_index+ buffer-1,samples);
data_buffer = data(start_index:stop_index)
figure(ci)
plot(data_buffer)
end
  댓글 수: 8
C PRASAD
C PRASAD 2021년 12월 2일
thansyou very much sir
Mathieu NOE
Mathieu NOE 2021년 12월 2일
again, my pleasure !

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by