Owning Class: plots
Requires: MathScript RT Module
plot3d(x, y, z)
plot3d(x, y, z, attributes)
plot3d(x, y, z, name1, value1, ..., nameN, valueN)
plot3d(x1, y1, z1, attributes1, x2, y2, z2, attributes2, ..., xN, yN, zN, attributesN)
obj = plot3d(x, y, z)
obj = plot3d(x, y, z, attributes)
obj = plot3d(x, y, z, name1, value1, ..., nameN, valueN)
obj = plot3d(x1, y1, z1, attributes1, x2, y2, z2, attributes2, ..., xN, yN, zN, attributesN)
Legacy Name: plot3
Generates a 3D plot. If x, y, and z are real vectors of the same size, plot3d(x, y, z) plots a curve in space. If x, y, or z is complex, plot3d(x, y, z) plots a curve in space using real(x), real(y), and real(z). plot3d(x, y, z, attributes) plots the curves using the specified attributes. plot3d(x, y, z, name1, value1, ..., nameN, valueN) sets the line attributes according to the attribute names and values you specify.
| Name | Description | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| x | Specifies a vector or matrix you want to plot. | ||||||||||||||||||||||||||||||||||
| y | Specifies a vector or matrix you want to plot. | ||||||||||||||||||||||||||||||||||
| z | Specifies a vector or matrix you want to plot. | ||||||||||||||||||||||||||||||||||
| attributes | Specifies valid plot attributes. Order the plot attributes by color, point style, and line style. For example, 'bo-' specifies that the plot is blue, marks points with circles, and uses solid lines. attributes is a string that accepts a combination of the following values.
|
||||||||||||||||||||||||||||||||||
| name | Specifies the name of the attribute. name is a string. | ||||||||||||||||||||||||||||||||||
| value | Specifies the value of the attribute. |
| Name | Description |
|---|---|
| obj | Returns the reference to the line object. obj is a reference to a line object. |
This function is not supported in the LabVIEW Run-Time Engine if you request an output from the function. Either do not request an output or remove this function from scripts before you build a stand-alone application or shared library.
X = [0:0.01:1];
Y = X.*X;
Z = sqrt(X);
plot3d(X, Y, Z, 'Color', 'g')