Owning Class: plots
Requires: MathScript RT Module
surface(z)
surface(z, color)
surface(x, y, z)
surface(x, y, z, color)
Legacy Name: surf
Plots a 3D surface. If x, y, and z are real matrices of the same size, surface plots corresponding values of x, y, and z. If x and y are real vectors and z is a real matrix, surface plots the i-th element of x, the j-th element of y, and the ij-th element of z. If you specify only a real matrix z, surface plots the ij-th element of z against i and j.
| Name | Description |
|---|---|
| x | Specifies a real vector or matrix. |
| y | Specifies a real vector or matrix. |
| z | Specifies a real matrix. |
| color | Specifies a valid color attribute for the plot. color is a real matrix of the same size as z. The default is the values in z. |
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
[X, Y] = meshgrid2d(0:0.1:1);
Z = sqrt(X.^2+Y.^2);
surface(X, Y, Z)
mesh
meshgrid2d
plot3d
plotf_surf
plotf_surfcontour
surfacecontour
surfacenorm