histogram()

Generates a histogram representation. This function creates a histogram that represents data

Syntax
y = histogram(data, numBins, minBin, maxBin)

Name Description Range Type Default Required
data signal(must be one-dimensional) (-∞, ∞) integer, real   yes
numBins number of subintervals or bins used to measure the histogram. [1, ∞) integer log(numOfPts)/log(2.0) no
minBin beginning of the evaluation of the histogram (-∞, ∞) real minimum value of the data no
maxBin end of the evaluation of the histogram (-∞, ∞) real maximum value of the data no

Examples

y = histogram(data)
y = histogram(data, 20)
If you have performed a parameter sweep such that the first argument ( data ) in the histogram function is a function of two independent variables, then you must reduce the dimensionality of data before using it in the histogram function. For example, if you run a Monte Carlo simulation on the S-parameters of a circuit, S 21 would be a function of both the Monte Carlo index and the frequency (assuming you have swept frequency). So, you could plot the histogram of S 21 at the 100th frequency in the sweep by using:
y = histogram(dB(S21[::,99]))

Defined in

Built in

See Also

cdf(), pdf(), yield_sens(), histogram_multiDim(), histogram_stat()

Notes/Equations

This function can only be used by entering an equation (Eqn) in the Data Display window. Use the histogram_multiDim() function for multi-dimensional data.

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources