matlab绘制三维图 程序出错 x = 0:10:1000;y = -500:10:500;c=14831./(pi.*0.314278.*x.^0.876088.*0.057025.*x.^1.0935.*1.72+eps).*exp(-0.5.*(y./(0.314278.*x.^0.876088+eps)).^2).*exp(-0.5.*(80./( 0.057025.*x.^1.0935+eps)).^2);mesh(x,y,c); Error us

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/21 21:27:00
matlab绘制三维图程序出错x=0:10:1000;y=-500:10:500;c=14831./(pi.*0.314278.*x.^0.876088.*0.057025.*x.^1.0935.*1

matlab绘制三维图 程序出错 x = 0:10:1000;y = -500:10:500;c=14831./(pi.*0.314278.*x.^0.876088.*0.057025.*x.^1.0935.*1.72+eps).*exp(-0.5.*(y./(0.314278.*x.^0.876088+eps)).^2).*exp(-0.5.*(80./( 0.057025.*x.^1.0935+eps)).^2);mesh(x,y,c); Error us
matlab绘制三维图 程序出错
x = 0:10:1000;
y = -500:10:500;
c=14831./(pi.*0.314278.*x.^0.876088.*0.057025.*x.^1.0935.*1.72+eps).*exp(-0.5.*(y./(0.314278.*x.^0.876088+eps)).^2).*exp(-0.5.*(80./( 0.057025.*x.^1.0935+eps)).^2);
mesh(x,y,c);
Error using mesh (line 76)
Z must be a matrix,not a scalar or vector

matlab绘制三维图 程序出错 x = 0:10:1000;y = -500:10:500;c=14831./(pi.*0.314278.*x.^0.876088.*0.057025.*x.^1.0935.*1.72+eps).*exp(-0.5.*(y./(0.314278.*x.^0.876088+eps)).^2).*exp(-0.5.*(80./( 0.057025.*x.^1.0935+eps)).^2);mesh(x,y,c); Error us
需要加一句meshgrid 产生三维网格数据矩阵,如下:
x = 0:10:1000;
y = -500:10:500;
[X,Y]=meshgrid(x,y)
c=14831./(pi.*0.314278.*X.^0.876088.*0.057025.*X.^1.0935.*1.72+eps).*exp(-0.5.*(Y./(0.314278.*X.^0.876088+eps)).^2).*exp(-0.5.*(80./( 0.057025.*X.^1.0935+eps)).^2);
mesh(X,Y,c);

matlab绘制三维图 程序出错 x = 0:10:1000;y = -500:10:500;c=14831./(pi.*0.314278.*x.^0.876088.*0.057025.*x.^1.0935.*1.72+eps).*exp(-0.5.*(y./(0.314278.*x.^0.876088+eps)).^2).*exp(-0.5.*(80./( 0.057025.*x.^1.0935+eps)).^2);mesh(x,y,c); Error us 请问如何用matlab绘制三维函数图,例如:z=x-y,(要求z>0) matlab画三维图出错X,Y为(0,100)步长为1的正方形矩阵,绘制出三维的图像,但是我写了在matlab中总是报错, matlab如何绘制三维曲面图 MATLAB中:(1)z=(x2-2x)e^(-x^2-y^2-xy),请设计程序绘制该函数的三维网线图.(2)z=sin(y ) cos(x ) 用MATLAB完成绘制函数 的三维曲面图,其中 :r=根号下x^2+y^2 用MATLAB只知道一些(x,y,z)坐标,怎样绘制出三维曲面图? matlab中,在三维坐标系xyz下,如何绘制 x=1这个平面 matlab如何绘制y=x,z的任意的三维图像 matlab三维图形绘制题目绘制三维函数图,z=2x^2+y^2,其中x=sin(3t),y=cos(3t),t的范围取[-3,3],x,y轴范围均取[-1.2,1.2] 要求:分别画出三维网格图、三维曲面图和带有等高线的三维曲面图,并画出x=1截面图 matlab画三维图命令曲面z=xy,x+y-1=0,z=0绘制这三条线索所围成MATLAB命令 用matlab绘制y=sin(x)*cos(x)我的程序如下x=0:1:40;y=sin(x)*cos(x);plot(x,y)为什么运行会出错,求指教 matlab绘制三维曲面y^2=2x,x=1,z=1,z=-1 用matlab画出这个三维曲面(都画在一起). matlab绘制一分段函数三维图当0 用matlab绘制三维图形 : z=5如题 如何绘制MATLAB三维图 已知如下散点,依次是X,Y,Z,求程序,谢谢! -6 6 41.1 -3 6 7.9 3 6 20.7 6 -6 41.散点如图中所示 知道曲线方程 怎么用matlab绘制三维图 一定要给出程序P1-P10已知 z=(p1+p3*Ln(x)+p5*y+p7*(Ln(x))^2+p9*y^2+p11*y*Ln(x))/(1+p2*Ln(x)+p4*y+p6*(Ln(x))^2+p8*y^2+p10*y*Ln(x))p1=-27.6688658877714p2=-0.0130414216785649p3=1.08740445793226p4= 绘制三维曲面z=sin(x)cos(y)图中的z>0.35 部分图形,其中0≤x,y≤2π.用matlab画