Fit and display multiple gaussians on a data set

2 ビュー (過去 30 日間)
Matthew Worker
Matthew Worker 2022 年 4 月 8 日
コメント済み: DGM 2022 年 4 月 17 日
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 件のコメント
DGM 2022 年 4 月 17 日
Edited to restore deleted question and attachments.


回答 (1 件)

Image Analyst
Image Analyst 2022 年 4 月 8 日
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 件のコメント
Image Analyst
Image Analyst 2022 年 4 月 11 日
編集済み: Image Analyst 2022 年 4 月 11 日
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.



Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by