<< geometric_prob Probas Stats mean >>

Scilab Scholar module for schools >> Probas Stats > histogram

histogram

histogram

Calling sequence

histogram(a,n,color)

Arguments

a

vector of real numbers

n

vector of positive real numbers

color

character string

Description

histogram(a,n,color) where color is an optional argument, plots an histogram of a statistical series where the variable is grouped into classes. It plots a data vector using the classes defined in the vector a . a is a vector giving the class boundaries in increasing order. n is the vector of corresponding frequencies. The vector a has one more component than the vector n. color defines the color as in the function plot.

Similar to the function histplot(). Enter the command histplot() to see a demo

Examples

a=[0,10,15,20,40]
n=[8,6,13,10]
histogram(a,n,"r")
<< geometric_prob Probas Stats mean >>