contours (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

»查看产品信息 下载帮助（仅限Windows）

Owning Class: geometry

Requires: MathScript RT Module

Syntax

c = contours(z)

c = contours(z, n)

c = contours(z, h)

c = contours(x, y, z)

c = contours(x, y, z, n)

c = contours(x, y, z, h)

Legacy Name: contourc

Description

Calculates the contour lines of a surface. You can use the contour function or the contouris function to generate a contour plot.

Examples

Inputs

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.

Outputs

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.

Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

Examples

z = peakfcn2d(50);
c = contours(z);

﻿