使用 plot3 即可。在MATLAB环境下输入 help plot3 可查看用法详细说明。如下所示:
The plot3 function displays a three-dimensional plot of a set of data points.
plot3(X1,Y1,Z1,...), where X1, Y1, Z1 are vectors or matrices, plots one or more lines in three-dimensional space through the points whose coordinates are the elements of X1, Y1, and Z1.
plot3(X1,Y1,Z1,LineSpec,...) creates and displays all lines defined by the Xn,Yn,Zn,LineSpec quads, where LineSpec is a line specification that determines line style, marker symbol, and color of the plotted lines.
plot3(...,'PropertyName',PropertyValue,...) sets line properties to the specified property values for all the charting lines created by plot3.
plot3(axes_handle,...) plots into the axes specified by axes_handle instead of into the current axes (gca). The option, axes_handle can precede any of the input combinations in the previous syntaxes.
h = plot3(...) returns a column vector of charting line handles, with one handle per object.
温馨提示:答案为网友推荐,仅供参考