Name

hist3d — 3D representation of a histogram

Calling Sequence

hist3d(f,[theta,alpha,leg,flag,ebox])
hist3d(list(f,x,y),[theta,alpha,leg,flag,ebox])

Parameters

mtx

matrix of size (m,n) defining the histogram mtx(i,j)=F(x(i),y(j)), where x and y are taken as 0:m and 0:n.

list(mtx,x,y)

where mtx is a matrix of size (m,n)defining the histogram mtx(i,j)=F(x(i),y(j)), with x and y vectors of size (1,n+1) and (1,m+1).

theta,alpha,leg,flag,ebox

see plot3d.

Description

hist3d represents a 2d histogram as a 3D plot. The values are associated to the intervals [x(i) x(i+1)[ X [y(i) y(i+1)[.

Enter the command hist3d() to see a demo.

Examples

hist3d(10*rand(10,10));

Z = zeros(100,5);
A = abs(rand(40,5));
Z(1:40,:) = A;
scf();
hist3d(Z);

Index = find(Z==0);
Z(Index) = %nan;
scf();
hist3d(Z);

A = abs(rand(10,5));
Z(91:100,:) = A;
scf();
hist3d(Z); 

See Also

histplot , plot3d

Authors

Steer S. & JPhilippe C.