matlab三维绘图出了问题,z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y.-576.61;|Error:Missing variable or function.程序是:clc;clear all[x,y]=meshgrid(-15:0.5:6,6:1:54);z=-56.9832*exp(-x.^2/11.60367);z=-1*0.00000
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 00:47:15
matlab三维绘图出了问题,z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y.-576.61;|Error:Missing variable or function.程序是:clc;clear all[x,y]=meshgrid(-15:0.5:6,6:1:54);z=-56.9832*exp(-x.^2/11.60367);z=-1*0.00000
matlab三维绘图出了问题,
z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y.-576.61;
|
Error:Missing variable or function.
程序是:
clc;clear all
[x,y]=meshgrid(-15:0.5:6,6:1:54);
z=-56.9832*exp(-x.^2/11.60367);
z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y.-576.61;
meshz(x,y,z);
ais([-15 6 6 54 -10 100]);
matlab三维绘图出了问题,z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y.-576.61;|Error:Missing variable or function.程序是:clc;clear all[x,y]=meshgrid(-15:0.5:6,6:1:54);z=-56.9832*exp(-x.^2/11.60367);z=-1*0.00000
z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y.-576.61;
这一句最后面多了一个点,去掉就好了.
z=-1*0.000001*y.^6+0.0003*y.^5-0.02*y.^4+0.7978*y.^3-16.901*y.^2+173.72*y-576.61;
另外你这个程序是什么意思?
这里z重复用两个式子计算,得到的是最后一个式子计算所得到的的值,前面计算的值被替代了.