Member of the geometry class.
c = contourc(z)
c = contourc(z, n)
c = contourc(z, h)
c = contourc(x, y, z)
c = contourc(x, y, z, n)
c = contourc(x, y, z, h)
Calculates the contour lines of a surface. You can use the contour function or the contourf function to generate a contour plot.
| Name | Description |
| x | Specifies the surface from z in relation to the x-plane. x is a matrix. size(x) must equal size(z). |
| y | Specifies the surface from z in relation to the y-plane. y is a matrix. size(y) must equal size(z). |
| z | Specifies the height of the surface in relation to the z-plane. z is a matrix. |
| n | Specifies the number of contour lines you want to plot. |
| h | Specifies the height levels. h is a vector. length(h) must equal the number of contour lines you want to plot. |
| Name | Description |
| c | Returns the contour lines of the surface z. c is a real matrix with two rows. The first column of c indicates the height level, h, and the number of coordinates, k, of the contour line at that height level. The next k columns specify the x- and y-coordinates of the contour line. |
z = peaks(50);
c = contourc(z);