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

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

sphere

sphere(n)

[x, y, z] = sphere

[x, y, z] = sphere(n)

Description

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.

Examples

Inputs

Name Description
n Specifies the number of samples (n + 1) in each dimension of the sphere. n is an integer.

Outputs

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.

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] = sphere(50);
surface(X, Y, Z)

Related Topics

cylinder
ellipsoid
surface


 

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