【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?知道一系列点的坐标如下(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.5

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 21:49:28
【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?知道一系列点的坐标如下(1.486,3.059,0.1);(2.121,4.041,0.1);(2.570,3.959,0.1

【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?知道一系列点的坐标如下(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.5
【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?
知道一系列点的坐标如下(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绘制成三维曲面呢?

【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?知道一系列点的坐标如下(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.5
A=[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];
x=A(:,1);y=A(:,2);z=A(:,3);
scatter(x,y,5,z)%散点图
figure
[X,Y,Z]=griddata(x,y,z,linspace(1.486,4.271)',linspace(1.604,4.276),'v4');%插值
pcolor(X,Y,Z);shading interp%伪彩色图
figure,contourf(X,Y,Z) %等高线图
figure,surf(X,Y,Z)%三维曲面

这个问题 有点难了~~

可以首先参考meshgrid()函数,得到规则的x,y格子及其对应的z,然后用很多函数都可以绘制三维曲面,例如mesh(), surf()

A=[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...

全部展开

A=[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];
x=A(:,1);y=A(:,2);z=A(:,3);
%接下来把x,y,z变成矩阵就可以啦,不要把问题想得太复杂
xx=reshape(x,9,4);
yy=reshape(y,9,4);
zz=reshape(z,9,4);
%OK了,画图
surf(xx,yy,zz);
shading interp;

收起

【急!】知道了一些点(x,y,z)坐标,怎样用MATLAB绘制出三维曲面?知道一系列点的坐标如下(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.5 #matlab#空间点 拟合曲线 在三维坐标系中,知道了20个点的空间坐标(x,y,z),怎样通过matlab拟合出一条最贴近的曲线方程 关于点M(X,Y,Z)X轴Y轴Z轴和原点对称的点的坐标 【急】用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); 向量题,急点P(x,y,z)关于OX轴对称点坐标为_____,向量OP在OZ上的投影为______. z=2(x-y)-x平方-y平方的驻点坐标!填空 z=2(x-y)-x平方-y平方的驻点坐标! 用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图? 急求助高人: 有xyz轴三个坐标,excel怎么画空间离散点图已经知道每个点的三个坐标 例如a(x,y,z), 现在有10个这样的点 怎么在excel中画出每个点的空间位置 数据像这样 x轴 y轴 z轴 a 请哪位matlab大神帮忙一下对于Z=p(x^2+y^2),其中p为一常数,x,y为一些离散点坐标,如何用matlab画出类似于下图的分布图,谢谢 求平面x+2y+3z=1上最靠近坐标原点的点 已知三点求平面方程已知三点(x,y,z)的坐标,求通过三点的平面方程. 编程序:已知三维空间中的一个点坐标(x,y,z),求该点到原点的距离 急 空间中的点到直线的距离公式是什么啊?空间是三维空间 点的坐标含有x y z 直线也是三维直线最好把公式写上 急 求点(-1.2)关于直线Y=X-1的对称点的坐标 在空间直角坐标系中,点A(x,y,z)关于坐标平面xOz的对称点的坐标是g 设x,y,满足约束条件:x+y=0,求使目标函数z=x+1/2y取得最大值的点的坐标 请问如何用matlab画三维点,已知x,y,z的坐标,在三维坐标系上显示