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

cylinder (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

cylinder

cylinder(a)

cylinder(a, n)

[x, y, z] = cylinder

[x, y, z] = cylinder(a)

[x, y, z] = cylinder(a, n)

Description

Generates the surface of a cylinder of height 1. If you do not request an output, LabVIEW plots a cylinder surface in the current plot window.

Details

Examples

Inputs

Name Description
a Specifies a vector that represents the radius of the cylinder versus equally distributed heights of the cylinder.
n Specifies the number of samples in each dimension (radius and height) of the cylinder. n is an integer.

Outputs

Name Description
x Returns the x-values at which LabVIEW generates the cylinder surface. x is a matrix that consists of length(a) rows and (n + 1) columns.
y Returns the y-values at which LabVIEW generates the cylinder surface. y is a matrix that consists of length(a) rows and (n + 1) columns.
z Returns the z-values at which LabVIEW generates the cylinder surface. z is a matrix that consists of length(a) rows and (n + 1) columns.

Details

This function is supported in the LabVIEW Run-Time Engine only if you request an output from the function. This function can remain in your scripts when you build a stand-alone application or shared library, but if you do not request an output, the LabVIEW Run-Time Engine does not execute this function. If you request an output, the LabVIEW Run-Time Engine executes this function as normal.

Examples

[X, Y, Z] = cylinder([1, 2, 0.5], 50);
surf(X, Y, Z)

Related Topics

ellipsoid
sphere
surf


Resources


 

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