Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

contourc (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the geometry class.

Syntax

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)

Description

Calculates the contour lines of a surface. You can use the contour function or the contourf 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 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.

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.

Examples

z = peaks(50);
c = contourc(z);

Related Topics

contour
contourf


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit