Re: [Stanford-imaging] Question on Matlab

2011-03-09 Thread Hatef Monajemi
Stanford, CA 94305 Email: monaj...@stanford.edu Web: http://www.stanford.edu/~monajemi/ - Original Message - From: "Xiaoyi Liu" To: "Hatef Monajemi" Cc: stanford-imaging@lists.launchpad.net Sent: Wednesday, March 9, 2011 7:55:57 PM Subject: Re: [Stanford-imaging]

Re: [Stanford-imaging] Question on Matlab

2011-03-09 Thread Xiaoyi Liu
Hi Hatef, I think you need to smooth the histogram with a uniform or other kernels such as Gaussian distribution (look up kernel density estimation). Matlab has a function "ksdensity" that does it, but honestly I have never used it. Or if you are familiar with R, you can use it too. Best, Xiaoyi

[Stanford-imaging] Question on Matlab

2011-03-09 Thread Hatef Monajemi
Dear All, I have a question on Matlab and I appreciate if any of you could comment on this if you have prior experience in what I want. I have bunch of scalar data and I need to sketch the PDF of it. I am familiar with "hist" and "bar" functions in Matlab where basically you create some bins