User`s guide

Histogram
5-225
For convenience, length-M 1-D vector inputs and sample-based length-M row
vector inputs are both treated as M-by-1 column vectors.
The output,
y, is a sample-based n-by-N matrix whose jth column is the
histogram for the data in the jth column of
u. When the Normalized check box
is selected, the block scales each column of the output so that
sum(y(:,j)) is 1.
Running Operation
When the Running histogram check box is selected, the block computes the
frequency distributions in a time-sequence of M-by-N inputs by creating N
persistent histograms to which successive inputs are continuously added. For
frame-based inputs, this is equivalent to a persistent histogram for each
independent channel.
As in basic operation, length-M 1-D vector inputs and sample-based length-M
row vector inputs are both treated as M-by-1 column vectors.
The output is a sample-based n-by-N matrix whose jth column reflects the
current state of the jth histogram. The block resets the running histogram (by
emptying all bins of all histograms) when the scalar input at the optional
Rst
port is nonzero. (The
Rst port can be disabled by deselecting the Reset port
check box.)
Example The model below illustrates the Histogram block’s basic operation for a
single-channel input,
u, where
u = [0 -2 6 -12 2 5 4 3 0 4 3 -2 -3 -2 -9]'
The parameter settings for the Histogram block are:
Minimum value of input = -10
Maximum value of input = 10
Number of bins = 5