| Group: | Plot Manipulation |
| See also: | contour3 |
| Function: | contour2 | |
| Description: | contour2 computes lines and points for a contourplot of a three dimensional dataset at level c |
| Usage: | {lt, pt} = contour2 (x, c) | |
| Input: | ||
| x | n x 3 matrix | |
| c | scalar | |
| Output: | ||
| lt | m1 x 2 line matrix | |
| pt | m2 x 2 point matrix | |
x = grid(-#(3,3), #(0.25,0.25), #(25,25))
f = exp(-0.5.*sum(x^2,2))./(2.*pi)
z = sort(x~f, #(1,2,3))
{lt,pt} = contour2(z, max(f)./2)
d = createdisplay(1,1)
show (d,1,1,pt)
You will see a circle corresponding to a contourline.
| Group: | Plot Manipulation |
| See also: | contour3 |