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/11/15 04:17:16
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];
程序就可以正常运行.
结果图: