Gaussian help in Matlab

조회 수: 7 (최근 30일)
Michael
Michael 2013년 1월 27일
I have a two column matrix representing data points, the left column being the x-coordinate and the right being the y-coordinate.
I want to fit a Gaussian to my data, and find the standard deviation of the data and the x-coordinate of the peak of the Gaussian.
Any help would be appreciated - I've been searching the internet for a bit and have not been successful.
  댓글 수: 1
Oleg Komarov
Oleg Komarov 2013년 1월 27일
Do you have the Stats Toolbox?

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

답변 (2개)

Matt J
Matt J 2013년 1월 27일
There are many offerings
Or you could make your own using FMINSEARCH.
  댓글 수: 1
Matt J
Matt J 2013년 1월 27일
This one seems reasonably appropriate, and reasonably popular,

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


Shashank Prasanna
Shashank Prasanna 2013년 1월 27일
What you want is directly available in the curve fitting toolbox: http://www.mathworks.com/help/curvefit/gaussian.html
However it seems like you want to fit a distribution because you specifically want the mean and standard deviation. You can go directly to the stats toolbox and use your data to fit the distribution. It will give you the mean and standard deviation: http://www.mathworks.com/help/stats/normal-distribution.html
If you don't have either of the toolboxes, go to wikipedia get the formula and implement it yourself using FMINSEARCH as Matt mentioned or you will most definitely find something in File Exchange.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by