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
Image Analyst
Image Analyst 2022년 4월 11일
편집: Image Analyst 2022년 4월 11일
@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 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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by