Cross Recurrence Plot Toolbox 5.24 (R34)

CRP Toolbox

hist2

Creates a two dimensional histogram.

Syntax

p=hist2(x)
p=hist2(x,y)
p=hist2(x,k,l)
[p,j]=hist2(...)
hist2(...)
hist2(..,'gui')

Description

p=hist2(x) bins the two-dimensional density of x(i) and x(i+1) into a 10x10 equally spaced matrix and returns it in p.

p=hist2(x,y) bins the two-dimensional density of x(i) and y(i) into a 10x10 equally spaced matrix and returns it in p.

p=hist2(x,k,l), where n and l are scalars, uses k bins and a lag l.

[p,j]=hist2(...) returns the matrix p and the two-dimensional vector j containing the two-dimensional density matrix and the bin location for x (and y).

hist2(...) without output arguments produces a histogram plot.

hist2(...,'gui') creates a GUI for interactively changing of the parameters.

Examples

x=rand(10000,1);
hist2(x)

See Also

histn, mi