Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Histogram to Probability ditribution function
Date: Sat, 13 Mar 2010 20:43:05 +0000 (UTC)
Organization: PatientsLikeMe
Lines: 9
Message-ID: <hngtcp$h0b$1@fred.mathworks.com>
References: <hnfje9$r0d$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1268512985 17419 172.30.248.38 (13 Mar 2010 20:43:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Mar 2010 20:43:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1841757
Xref: news.mathworks.com comp.soft-sys.matlab:616577

"Mehdi bahonar" <mehdiuoc@yahoo.com> wrote in message <hnfje9$r0d$1@fred.mathworks.com>...
> Hi There,
> 
> Do you know how we can convert histogram plot to probability density function plot?
> 
> Thanks,
> maryam

As has been mentioned, use HISTFIT if you know the underlying distribution type that you want to fit (e.g. normal distribution).  If you do not, then you need to do a non-parametric fit.  You can use the KSDENSITY function to do this.  Note that this is a bit of an art in addition to science.  You might want to read up on "kernel density estimation".