![how to automatic segmentation signal - 2019 01 22.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201121/how%20to%20automatic%20segmentation%20signal%20-%202019%2001%2022.png)
how to automatic segmentation signal
3 ビュー (過去 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
![shannon.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/200990/shannon.jpeg)
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:
![how to automatic segmentation signal - 2019 01 22.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201121/how%20to%20automatic%20segmentation%20signal%20-%202019%2001%2022.png)
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!