Too many plots..too little time!!
Show older comments
Could anyone please explain the difference between/ when to use hist,histc, histfit,bar,barh, normplot? Suppose I have a n x 1 data points and would like to plot a normal (gaussian) distribution. What would be my best choice?
Thanks (and sorry if the question sounds stupid)
Accepted Answer
More Answers (1)
Jos (10584)
on 12 Feb 2018
Edited: Jos (10584)
on 12 Feb 2018
why don't you try histogram and use the help to improve the plot, add a fit etc.
n = 10+5*randn(1,100) ;
histogram(n)
Categories
Find more on Histograms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!