How can I find the baseline of signal?

10 visualizzazioni (ultimi 30 giorni)
Yuhan Yang
Yuhan Yang il 2 Mar 2021
Risposto: Star Strider il 2 Mar 2021
I have a signal like this. How to compute the baseline of the signal? I way trying to use medfilt1, but I can't get rid of the peaks.

Risposte (1)

Star Strider
Star Strider il 2 Mar 2021
See if the min function will do what you want.
If you want to plot a horizontal line indicating the minimum, and if ‘y’ is the signal you are plotting, one option is:
plot(xlim, [1 1]*min(y))
another option is:
yline(min(y))
.

Categorie

Scopri di più su Signal Processing Toolbox in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by