How to make normal distribution curve from the bar chart?

조회 수: 4 (최근 30일)
Gopinath Karuppannan
Gopinath Karuppannan 2023년 5월 9일
답변: Image Analyst 2023년 5월 9일
  • I need to make the distribution curve as shown in the below image from the data of the bar chart.
  • I have the bar chart data file. Is there any possiblity to make the ditribution curve directly.

답변 (3개)

Rik
Rik 2023년 5월 9일
Your data resolution is too low now that you have this bar chart. Unless you have the actual underlying data it is not possible to make a smooth curve.
What you can do to smooth the curve is to insert zeros between the bars and use a convolution to spread out the data.

Walter Roberson
Walter Roberson 2023년 5월 9일
Your only hope of creating a distribution curve would be if you had a model for the distribution and you used the data to fit the model parameters.
For what you have, I would suggest spline to create a smooth curve joining what you have.

Image Analyst
Image Analyst 2023년 5월 9일
That's not a single Gaussian you have there. There are at least two of them. See attached code that can fit the data (your histogram counts) to any specified number of Gaussian curves.

카테고리

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

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by