>>help plot
>>help plot3
在帮助中可以找到示例
Example
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
plot(x,y,'--rs','LineWidth',2,...
'MarkerEdgeColor','k',...
'MarkerFaceColor','g',...
'MarkerSize',10)
输出:
Example: A helix:
t = 0:pi/50:10*pi;
plot3(sin(t),cos(t),t);
输出