MATLAB Answers

Curve fitting toolbox - gaussian curve to histogram with no workspace data for the y - value

조회 수: 2(최근 30일)
Alice Gold
Alice Gold 30 Mar 2020
댓글: Alice Gold 2 Apr 2020
Hello,
I have created a single column array of data which has 1181 rows of data.
I have plotted this data into a histogram. I would now like to fit a 2 term gaussian function to my histogram using the curve fitting toolbox. To select the gaussian distribution option it requires me to select data for the X value and Y value. I only however have data in my workspace for the X value, as the Y value is the frequency that the histogram produced. How do I use this data from the histogram itself to plot the curve?
Many thanks for any help!

  댓글 수: 0

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

답변(1개)

Torsten
Torsten 30 Mar 2020
I think Matlab's "mle" is what you want instead of the curve fitting toolbox.

Community Treasure Hunt

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

Start Hunting!

Translated by