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

contours (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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 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 = peakfcn2d(50);
c = contours(z);

Related Topics

contour
contouris


 

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