how to automatic segmentation signal
조회 수: 16 (최근 30일)
이전 댓글 표시
hi guys
i have a pcg signal
i want to segment the signal into 4 segment, s1 & s2 = 1 segment
how to do it?
thankss
댓글 수: 0
채택된 답변
Star Strider
2019년 1월 22일
D = load('matlab.mat');
data = D.data;
Fs = D.fs;
t = linspace(0, 1, numel(data))/Fs;
cp = findchangepts(data, 'Statistic','std', 'MinDistance',2E+3, 'MaxNumChanges',7);
figure
plot(t, data)
hold on
YL = ylim;
plot([t(cp); t(cp)], YL(:)*ones(1,numel(cp)), '-r', 'LineWidth',1)
hold off
producing:
The ‘cp’ vector are the change points corresponding to the vertical red lines in the plot. The findchangepts function takes about 15 seconds to complete this (on my desktop, using tic and toc),
Experiment to get the result you want.
댓글 수: 6
추가 답변 (1개)
weii chieun lim
2019년 7월 4일
Hi Mr noobys , can i know how do you denoising the pcg signal ? tq
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!