Download Help (Windows Only) |
Owning Class: plots
Requires: MathScript RT Module
contour(z)
contour(z, n)
contour(z, h)
contour(x, y, z)
contour(x, y, z, n)
contour(x, y, z, h)
[c, obj] = contour(z)
[c, obj] = contour(z, n)
[c, obj] = contour(z, h)
[c, obj] = contour(x, y, z)
[c, obj] = contour(x, y, z, n)
[c, obj] = contour(x, y, z, h)
Generates a contour plot.
Name | Description |
---|---|
x | Specifies the surface from z in relation to the x-plane. x is a real vector or matrix. If x is a vector, the length of x must be equal to the number of columns of z. If x is a matrix, x and z must be of the same size. |
y | Specifies the surface from z in relation to the y-plane. y is a real vector or matrix. If y is a vector, the length of y must be equal to the number of rows of z. If y is a matrix, y and z must be of the same size. |
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. |
obj | Returns the reference to the contour line LabVIEW creates. obj is a reference to a line object. |
The following table lists the support characteristics of this function.
Supported in the LabVIEW Run-Time Engine | No (returns error or is ignored) |
Supported on RT targets | No |
z = peakfcn2d(50);
contour(z)