大家好,精选小编来为大家解答以上问题。MATLAB plot3画点,matlab plot3很多人还不知道,现在让我们一起来看看吧!
1、 Plot3函数,一个很常见的绘制3D图形的函数。格式有很多种,下面会给出一般的使用规范。
2、 第一个例子:
3、 t=0:pi/50:10 * pi;
4、 ST=sin(t);
5、 CT=cos(t);
6、 我猜的
7、 地块3(st,ct,t)
8、 第二个例子,同时绘制两个图形plot3(x1y1,z1,x2,y2,z2)。
9、 t=0:pi/50:10 * pi;
10、 ST=sin(t);
11、 CT=cos(t);
12、 x=0:0.1:30;
13、 y=cos(x);
14、 z=sin(x);
15、 地块3(t,st,ct,x,y,z)
16、 改变线性、颜色
17、 t=0:pi/50:10 * pi;
18、 ST=sin(t);
19、 CT=cos(t);
20、 x=0:0.1:30;
21、 y=cos(x);
22、 z=sin(x);
23、 plot3(t,st,ct,'- r ',x,y,z,'-。g’)
24、 有返回值。
25、 t=0:pi/50:10 * pi;
26、 ST=sin(t);
27、 CT=cos(t);
28、 h=plot3(t,st,CT);
29、 h.line style='-';
30、 线型就是这样设置的。
31、 设置线条宽度
32、 t=0:pi/50:10 * pi;
33、 ST=sin(t);
34、 CT=cos(t);
35、 h=plot3(t,st,CT);
36、 h.线宽=2;
本文到此结束,希望对大家有所帮助。















