Member of the geometry class.
cylinder
cylinder(a)
cylinder(a, n)
[x, y, z] = cylinder
[x, y, z] = cylinder(a)
[x, y, z] = cylinder(a, n)
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.
| 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. |
| 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. |
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.
[X, Y, Z] = cylinder([1, 2, 0.5], 50);
surf(X, Y, Z)