Thursday, 11 December 2014

How to fit (curve-fit) a histogram using Gaussian / Normal distribution, in Matlab?

1. Use 'histfit'


histfit(DATA,NBINS)


%By default it will fit the histogram with the normal distribution.


2. There are lots of other distributions supported by the 'histfit'. The details are given in this Matlab link. Quick look of supported distributions from this link:

 3. Example of 'histfit' with normal distribution for GPS residuals.








No comments:

Post a Comment