# ellipsoid (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

ellipsoid(cx, cy, cz, rx, ry, rz)

ellipsoid(cx, cy, cz, rx, ry, rz, n)

[x, y, z] = ellipsoid(cx, cy, cz, rx, ry, rz)

[x, y, z] = ellipsoid(cx, cy, cz, rx, ry, rz, n)

## Description

Generates the surface of an ellipsoid with center (cx, cy, cz) and radii (rx, ry, rz). If you do not request an output, LabVIEW plots an ellipsoid surface in the current plot window.

Examples

## Inputs

Name Description
cx Specifies the x-center of the ellipsoid. cx is a real number.
cy Specifies the y-center of the ellipsoid. cy is a real number.
cz Specifies the z-center of the ellipsoid. cz is a real number.
rx Specifies the x-radius of the ellipsoid. rx is a positive real number.
ry Specifies the y-radius of the ellipsoid. ry is a positive real number.
rz Specifies the z-radius of the ellipsoid. rz is a positive real number.
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 evaluates the ellipsoid. x is a matrix.
y Returns the y-values at which LabVIEW evaluates the ellipsoid. y is a matrix.
z Returns the z-values at which LabVIEW evaluates the ellipsoid. 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] = ellipsoid(0, 0, 0, 1, 2, 3, 50);
surface(X, Y, Z)