matlab程序:[X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; mesh(Z);有无[X,Y] = meshgrid(-8:.5:8)画出来的图像都一样,那么[X,Y] = meshgrid(-8:.5:8)这一句到底有什么作用呢?我是matlab新手,望路过的

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 07:13:26
matlab程序:[X,Y]=meshgrid(-8:.5:8);R=sqrt(X.^2+Y.^2)+eps;Z=sin(R)./R;mesh(Z);有无[X,Y]=meshgrid(-8:.5:8)

matlab程序:[X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; mesh(Z);有无[X,Y] = meshgrid(-8:.5:8)画出来的图像都一样,那么[X,Y] = meshgrid(-8:.5:8)这一句到底有什么作用呢?我是matlab新手,望路过的
matlab程序:[X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; mesh(Z);
有无[X,Y] = meshgrid(-8:.5:8)画出来的图像都一样,那么[X,Y] = meshgrid(-8:.5:8)这一句到底有什么作用呢?我是matlab新手,望路过的大侠出手相救.

matlab程序:[X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; mesh(Z);有无[X,Y] = meshgrid(-8:.5:8)画出来的图像都一样,那么[X,Y] = meshgrid(-8:.5:8)这一句到底有什么作用呢?我是matlab新手,望路过的
[X,Y] = meshgrid(-8:.5:8) 的作用是定义网格数据,如果没有这句,X和Y都没定义,后面根本不能计算,怎么可能有没有它,画出来的图像都一样?