How to mask the peak of a curve ?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Atharva Joshi
el 6 de Abr. de 2020
Comentada: Image Analyst
el 7 de Abr. de 2020
3 comentarios
Image Analyst
el 6 de Abr. de 2020
What do you mean by "mask the peak"?
- Do you mean that you want to erase the peak by setting it to zero?
- Do you mean that you want to erase outside the peak by setting it to zero?
- Do you mean that you want to find the "bottoms" of the peak and fit a line across the base to make it look as if it weren't there?
- Do you want to do a baseline correction, to basically detrend the data and make the baseline flat?
- Do you want to extract only the peak portion and exclude other parts?
or something else? Which one?
Respuesta aceptada
Image Analyst
el 6 de Abr. de 2020
See my attached demo for fitting two Gaussians on a slant to noisy data.
It should be very easy for you to adapt it to use only a single Gaussian. Let me know if you can't figure it out.
3 comentarios
Image Analyst
el 7 de Abr. de 2020
The signal is what it is. And it's not a nice symmetrical Gaussian either before or after subtracting the baseline. Why do you want to alter it to something that it is not? If you want a perfectly symmetrical Gaussian instead of your actual data, then just use the fitted red line.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!