Owning Class: geometry
Requires: MathScript RT Module
sphere
sphere(n)
[x, y, z] = sphere
[x, y, z] = sphere(n)
Generates the surface of a sphere. If you do not request an output, this function plots a sphere with a radius of 1 in the current plot window.
| Name | Description |
|---|---|
| n | Specifies the number of samples (n + 1) in each dimension of the sphere. n is an integer. |
| Name | Description |
|---|---|
| x | Returns the x-values at which LabVIEW generates the sphere. x is a matrix. |
| y | Returns the y-values at which LabVIEW generates the sphere. y is a matrix. |
| z | Returns the z-values at which LabVIEW generates the sphere. z is a matrix. |
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] = sphere(50);
surface(X, Y, Z)