how to automatic segmentation signal
28 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mr noobys
le 22 Jan 2019
Réponse apportée : weii chieun lim
le 4 Juil 2019
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 commentaires
Réponse acceptée
Star Strider
le 22 Jan 2019
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 commentaires
Plus de réponses (1)
weii chieun lim
le 4 Juil 2019
Hi Mr noobys , can i know how do you denoising the pcg signal ? tq
0 commentaires
Voir également
Catégories
En savoir plus sur AI for Signals dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!