【急】用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图?首先谢谢了,不过希望能详细点~我的意思是知道一系列点的坐标如下(1.486,3.059,0.1);(2.121,4.041,0.1;2.570,3.959,0.1);(3.439,4.396,0.1);
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 09:57:37
【急】用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图?首先谢谢了,不过希望能详细点~我的意思是知道一系列点的坐标如下(1.486,3.059,0.1);(2.121,4.041,0.1;2.570,3.959,0.1);(3.439,4.396,0.1);
【急】用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图?
首先谢谢了,不过希望能详细点~我的意思是知道一系列点的坐标如下(1.486,3.059,0.1);(2.121,4.041,0.1;2.570,3.959,0.1);(3.439,4.396,0.1);(4.505,3.012,0.1);(3.402,1.604,0.1);(2.570,2.065,0.1);(2.150,1.970,0.1);(1.794,3.059,0.2);(2.121,3.615,0.2);(2.570,3.473,0.2);(3.421,4.160,0.2);(4.271,3.036,0.2);(3.411,1.876,0.2);(2.561,2.562,0.2);(2.179,2.420,0.2);(2.757,3.024,0.3);(3.439,3.970,0.3);(4.084,3.036,0.3);(3.402,2.077,0.3);(2.879,3.036,0.4);(3.421,3.793,0.4);(3.953,3.036,0.4);(3.402,2.219,0.4);(3.000,3.047,0.5);(3.430,3.639,0.5);(3.822,3.012,0.5);(3.411,2.385,0.5);(3.103,3.012,0.6);(3.430,3.462,0.6);(3.710,3.036,0.6);(3.402,2.562,0.6);(3.224,3.047,0.7);(3.411,3.260,0.7);(3.542,3.024,0.7);(3.393,2.763,0.7)怎样用MATLAB绘制成三维曲面呢?
【急】用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图?首先谢谢了,不过希望能详细点~我的意思是知道一系列点的坐标如下(1.486,3.059,0.1);(2.121,4.041,0.1;2.570,3.959,0.1);(3.439,4.396,0.1);
三维曲线绘图
t=(0:0.02:2)*pi;x=sin(t);y=cos(t);z=cos(2*t);
plot3(x,y,z,'b-',x,y,z,'bd'),view([-82,58]),box on,legend('链','宝石')
t=(0:0.02:2)*pi;x=sin(t);y=cos(t);z=cos(2*t);
plot3(x,y,z,'b-',x,y,z,'bd'),view([-82,58]),box on,legend('链','宝石')
用曲面图表现函数
clf,x=-4:4;y=x;[X,Y]=meshgrid(x,y);
Z=X.^2+Y.^2;
surf(X,Y,Z);hold on,colormap(hot)
stem3(X,Y,Z,'bo')
上面的例子已经明显说明画曲线图用plot3()函数,而画三维曲面图用surf(),而meshgrid只是画出网格线而已!