Fit and display multiple gaussians on a data set

1 visualización (últimos 30 días)
Matthew Worker
Matthew Worker el 8 de Abr. de 2022
Comentada: DGM el 17 de Abr. de 2022
I have a test data set (attached) that I want to display with two closely spaced gaussians. An example of how the data should look like is attached. Thanks for suggestions.
  2 comentarios
Image Analyst
Image Analyst el 11 de Abr. de 2022
Editada: Image Analyst el 11 de Abr. de 2022
@ct8, somehow you, mistakenly I'm sure, deleted your whole question, rendering my answer useless for anyone who might have a similar situation. Can you put it back?
DGM
DGM el 17 de Abr. de 2022
Edited to restore deleted question and attachments.

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 8 de Abr. de 2022
See attached demos. Adapt to your data. One uses fitnlm() to fit two Gaussians, and the other is more general that can fit any number of Gaussians that you specify.
  1 comentario
Image Analyst
Image Analyst el 11 de Abr. de 2022
Editada: Image Analyst el 11 de Abr. de 2022
OK, so did you do that? What do you mean by "wanted"? Does that imply you did not succeed? Did you try anything at all? Which of my demos did you try to adapt? Where is your code? What part are you stuck at? Getting the individual Gaussians? Plotting the red circles? Plotting the bar charts? Only Walter has the Mind Reading Toolbox. The rest of us depend on you describing the problem in detail.

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by