MATLAB: Pdf distribution using bins

pdf

I have values for a variable for a significant number of time points. How would I go about calculating the pdf using 100 bins and plotting it against itself?
Getting stuck at combining hist function with the pdf but there's probably a much simpler method!
Thanks in advance guys

Best Answer

If you have the Statistics Toolbox, use the histfit function.
Related Question