MATLAB Answers

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

4 ビュー (過去 30 日間)
Alice Gold
Alice Gold 2020 年 3 月 30 日
コメント済み: Alice Gold 2020 年 4 月 2 日
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 件のコメント

Sign in to comment.

回答 (1 件)

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

  1 件のコメント

Sign in to comment.

Translated by