hello
how i can find the onest (the beginning) and the end of wave if i have the peaks only?

2 Kommentare

KSSV
KSSV am 17 Nov. 2021
Show us how your data is. Pictorial example with your expectations will help us to help you.
yasmeen hadadd
yasmeen hadadd am 17 Nov. 2021
Thnk you for replying :)
if i have an ecg signal and i find the peaks of every wave and i will find the onest and end of each wave , please see the figure bellow

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Bjorn Gustavsson
Bjorn Gustavsson am 17 Nov. 2021

0 Stimmen

You cannot in a strict sense. You will have to settle for the first and last wave-crest, or set some arbitrary threshold for the wave-amplitude (10% of the peak, of the peak-to-peak, whatever). That this is impossible follows from the fact that functions like f(x-vt) solves the wave-equation - we can for example set f to be some sequence of Gaussian pulses moving to the right, and since a Gaussian has infinite support where it starts or ends becomes a question of where you set your threshold.
In practice if you have some natural noise-level in your measurements this might give you some sensible reason to select a threshold.
HTH

4 Kommentare

yasmeen hadadd
yasmeen hadadd am 17 Nov. 2021
yes i look to find the relationship btween peaks , the beginning and the end of wave by Gaussian distribution.
Bjorn Gustavsson
Bjorn Gustavsson am 17 Nov. 2021
Ok, take it step by step.
1, Identify the peak
2, find s - the full-widths at 1/e,
3, take the data out to +/- 2s or 3s.
4, fit a Gaussian to that data, using fminsearch.
This should give you the Gaussian that is best fitting to the peak. Then you just have to select a threshold where you consider the "wave to start".
HTH
yasmeen hadadd
yasmeen hadadd am 17 Nov. 2021
yes yes yes
thank you very very much
Bjorn Gustavsson
Bjorn Gustavsson am 17 Nov. 2021
You're ever so welcome.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 16 Nov. 2021

Kommentiert:

am 17 Nov. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by