how to automatic segmentation signal

23 visualizaciones (últimos 30 días)
Mr noobys
Mr noobys el 22 de En. de 2019
Respondida: weii chieun lim el 4 de Jul. de 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
shannon.jpg

Respuesta aceptada

Star Strider
Star Strider el 22 de En. de 2019
The findchangepts (link) function (introduced in R2016a) is perfect for this:
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
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 comentarios
Mr noobys
Mr noobys el 23 de En. de 2019
Thank you soo much star strider !
thats really help me a lot!
Star Strider
Star Strider el 23 de En. de 2019
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (1)

weii chieun lim
weii chieun lim el 4 de Jul. de 2019
Hi Mr noobys , can i know how do you denoising the pcg signal ? tq

Categorías

Más información sobre AI for Signals en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by