Gaussian Distribution fit to Known Data?

7 views (last 30 days)
adam
adam on 11 Feb 2014
Commented: the cyclist on 11 Feb 2014
Hey all. I'm trying to make a Gaussian curve fit to a histogram made with data I already have. It is not normalized and I do not know anything about the curve other than what data it needs to fit. What function in MATLAB can I use to calculate sigma and mu? Thanks for your help.

Answers (2)

the cyclist
the cyclist on 11 Feb 2014
If you have the Statistics Toolbox, you can use normfit().

adam
adam on 11 Feb 2014
Where do I get the Statistics Toolbox? I'm using a student edition of MATLAB. Do I have to download it from somewhere?
  1 Comment
the cyclist
the cyclist on 11 Feb 2014
According to this page, the student version comes with the Statistics Toolbox. If you type
ver
at the command line, you should see it listed.
Type
doc normfit
to see the syntax for the normfit() command.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!