Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

cylinder (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: geometry

Requires: MathScript RT Module

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.

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

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes (if you request output)
Supported on RT targets Yes (if you request output)
Suitable for bounded execution times on RT Not characterized

Examples

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

Related Topics

ellipsoid
sphere
surface


 

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