matlab三维图,哪里有错误?x=[90,-10,10];y=[-5,10,45]; [xx,yy]=meshgrid(x,y);zz=[50.152,50.104,49.99,49.791,49.457,48.706,46.35,44,42;51.255,51.148,50.985,50.814,50.621,50.349,49.85,48.329,43.931;51.805,51.722,51.537,51.347,51.187,51,50.707,50.1

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 16:50:20
matlab三维图,哪里有错误?x=[90,-10,10];y=[-5,10,45];[xx,yy]=meshgrid(x,y);zz=[50.152,50.104,49.99,49.791,49.4

matlab三维图,哪里有错误?x=[90,-10,10];y=[-5,10,45]; [xx,yy]=meshgrid(x,y);zz=[50.152,50.104,49.99,49.791,49.457,48.706,46.35,44,42;51.255,51.148,50.985,50.814,50.621,50.349,49.85,48.329,43.931;51.805,51.722,51.537,51.347,51.187,51,50.707,50.1
matlab三维图,哪里有错误?
x=[90,-10,10];
y=[-5,10,45];
[xx,yy]=meshgrid(x,y);
zz=[50.152,50.104,49.99,49.791,49.457,48.706,46.35,44,42;
51.255,51.148,50.985,50.814,50.621,50.349,49.85,48.329,43.931;
51.805,51.722,51.537,51.347,51.187,51,50.707,50.16,48.74;
52.107,52.067,51.936,51.662,51.513,51.373,51.136,50.673,49.884;
52.268,52.228,52.108,51.824,51.673,51.556,51.302,50.816,50.08;
52.365,52.323,52.221,51.925,51.773,51.676,51.405,50.893,50.182 ];
surf(xx,yy,zz);

matlab三维图,哪里有错误?x=[90,-10,10];y=[-5,10,45]; [xx,yy]=meshgrid(x,y);zz=[50.152,50.104,49.99,49.791,49.457,48.706,46.35,44,42;51.255,51.148,50.985,50.814,50.621,50.349,49.85,48.329,43.931;51.805,51.722,51.537,51.347,51.187,51,50.707,50.1

是程序第1行和第2行求x,y矩阵的问题,改为

x=[90:-10:10];

y=[-5:10:45]; 

程序就可以正常运行.


结果图:


matlab三维图,哪里有错误?x=[90,-10,10];y=[-5,10,45]; [xx,yy]=meshgrid(x,y);zz=[50.152,50.104,49.99,49.791,49.457,48.706,46.35,44,42;51.255,51.148,50.985,50.814,50.621,50.349,49.85,48.329,43.931;51.805,51.722,51.537,51.347,51.187,51,50.707,50.1 matlab x(:,:,end) = x是一个三维矩阵 matlab画三维网格曲面图Z=(X^2)/(4^2)-(Y^2)/(5^2) 我想用matlab画z=x平方+y平方的三维图 请问如何用matlab绘制三维函数图,例如:z=x-y,(要求z>0) 如何在matlab中画出三维曲线方程的图.三维曲线方程为函数方程组,x=f(t),y=g(t),z=h(t),最好有程序,没有的话就提示一下用什么指令 已知xyz画matlab三维图我现在有x,y,z的矩阵(数据),y,z的函数关系式,如何画三维曲面图.急 如何用matlab画三维图x,y,z,分别是横坐标,纵坐标,海拔.如何用matlab 画三维图? matlab三维制图曲面图 matlab如何画 函数方程为 这样的 y^2= 4000+9*x-0.0017*x^2三维图 ,该函数为一双曲线模型! matlab画三维函数图z=(x-yx-1.5)(50-2x)-15 x>0 0 帮忙计算一个画一个matlab图,我这个程序不知道哪里有错误.x=0:0.02:1000;y=0.8/sqrt(1.288+0.0894*sin(x*15000));plot(x,y) matlab三维图形绘制题目绘制三维函数图,z=2x^2+y^2,其中x=sin(3t),y=cos(3t),t的范围取[-3,3],x,y轴范围均取[-1.2,1.2] 要求:分别画出三维网格图、三维曲面图和带有等高线的三维曲面图,并画出x=1截面图 【Matlab】y=(sinx1/x1)*(sinx2/x2)三维图是什么样的?函数看作z=(sin(x)/x)*(sin(y)/y) 用matlab绘一张三维图 代码也可 matlab绘制三维图形的问题.选修课上研究了 几天matlab,半年也忘得差不多了.试着画个三维图,函数为(x^2 + (9/4)y^2 + z^2 - 1)^3 - x^2z^3 - (9/80)y^2z^3 = 0.编程如下:[x,y,z]=meshgrid(linspace(-10,10));val=(x^2+(9/4 matlab中,z=1/2*x^2+1/3*y^2,怎么绘三维图啊? 用MATLAB完成绘制函数 的三维曲面图,其中 :r=根号下x^2+y^2 matlab如何用3组数据绘制三维曲面现在有3组数据 x是79*1的 y是4*1的,z是316*1的,用mesh(x,y,z)提示错误说z必须是矩阵,但我的z好像已经是矩阵啦,用[X,Y]=meshgrid(x,y)生成网格之后,还是不行,.