You are a guest. Restricted access. Read more

Histograms

One can fill histograms with data from vectors and matricies.


y=poisson_rnd(2,100)
h=h1d('Poisson',20,1,10,y) 
plot2d()
draw2d(h)

Here we create a vector with random numbers distributed using the Poisson statistics. Then we create a histogram with the title “Poisson”, 20 bins, in the range between 1 and 10. Then we use draw2d() to display the histogram. You can access the descriptive statistics as for any vector or matrix.

Analogously, you can do similar calculations for matrices.

jmathlab/statistics/histogram1d.txt · Last modified: 2013/04/14 16:52 (external edit)
Back to top
CC Attribution-Share Alike 3.0 Unported
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0