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

plotf_surfcontour (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: plots

Requires: MathScript RT Module

Syntax

plotf_surfcontour(f)

plotf_surfcontour(f, r)

plotf_surfcontour(f, a)

plotf_surfcontour(f, r, a)

plotf_surfcontour(f, 'circ')

plotf_surfcontour(f, r, 'circ')

plotf_surfcontour(f, a, 'circ')

plotf_surfcontour(f, r, a, 'circ')

Legacy Name: ezsurfc

Description

Plots a function of two variables as a 3D surface in conjunction with contour lines. You can write the function in explicit or parameterized notation. plotf_surfcontour plots f over the specified region.

Details

Examples

Inputs

Name Description
f Specifies the function you want to plot. f is a string or three strings separated by commas. Each string represents a valid expression. If f is a single expression of two variables x and y, plotf_surfcontour plots z = f(x, y). If f is a set of three strings that share the same two variables, LabVIEW displays a parameterized surface.
r Specifies the region of the plot. r is a four-element real vector or a two-element real vector. If r is a four-element vector, the r values represent [xmin, xmax, ymin, ymax]. If r is a two-element vector, the r values represent the square [xmin, xmax, xmin, xmax]. The default is [-2*pi, 2*pi, -2*pi, 2*pi].
a Specifies the grid size. a is a positive integer. LabVIEW uses a grid of a-by-a points. The default is 60.
'circ' Changes the specified region of the plot from a rectangle to a disc. The center of the disc coincides with the center of the underlying region specified by r.

Details

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

Examples

f = 'sin(x)*cos(y)';
plotf_surfcontour(f)

f = 'a^4+b^2-1';
r = [-2, 2, -3, 1];
plotf_surfcontour(f, r)

plotf_surfcontour('s', 't', 's+t', 20, 'circ')

Related Topics

plotf_surf
surfacecontour


 

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