MATLAB Answers


How can I plot histogram ?

Asked by Rita
on 20 Nov 2017
Latest activity Edited by Rita
on 20 Nov 2017
I wanted to plot distribution of my data. I have tried excel and I am not sure which function in matlab exactly draw a plot like in excel? I have tried ksdensity and hist functions but the plots are not like the plot drawn in excel.I know that the size of bins in two programs is different Any suggestion would much be appreciated.


Sign in to comment.


1 Answer

Answer by Nicolas Schmit on 20 Nov 2017

  1 Comment

Thanks Nicolas, I know this function but I don't know how to draw a pick of bars to draw a curve over the histogram without showing bars . like the distribution plot.I know that histfit works for normal distribution but my data are not normal.

Sign in to comment.