| Group: | Plot Manipulation |
| See also: | contour2 |
| Function: | contour3 | |
| Description: | Computes lines and points for a contour plot of a four-dimensional dataset at level c. |
| Usage: | {lt, pt} = contour3(x, c) | |
| Input: | ||
| x | n x 4 matrix containing (sorted) data | |
| c | scalar, defining the level at which cutting takes place | |
| Output: | ||
| lt | m1 x 2 matrix representing the lines of the contour plot | |
| pt | m2 x 3 matrix representing the points of the contour plot | |
x = grid(-#(3,3,3), #(0.5,0.5,0.5), #(13,13,13))
f = exp(-0.5.*sum(x^2,2))./(2.*pi)^1.5
z = sort(x~f, #(1,2,3,4))
{lt,pt} = contour3(z, max(f)./2)
d = createdisplay(1,1)
show(d,1,1,pt)
A three-dimensional contour plot of f is shown. It corresponds to a contour ball.