matlab中4维图画法a0=(1:0.2:2);b0=2*pi*(1:0.2:2);zf=b0^2/2*1;z0=zf*(1:0.2:2);x1,x2,x3为a0,b0,z0的已知函数.[X,Y,Z]=meshgrid(x3/zf,x2/2/pi,x1/2/pi,Gm-1)surf(x3/zf,x2/2/pi,x1/2/pi,Gm-1),shading faceted;colorbar('horiz')运行结果:Error usi
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 11:34:51
matlab中4维图画法a0=(1:0.2:2);b0=2*pi*(1:0.2:2);zf=b0^2/2*1;z0=zf*(1:0.2:2);x1,x2,x3为a0,b0,z0的已知函数.[X,Y,Z]=meshgrid(x3/zf,x2/2/pi,x1/2/pi,Gm-1)surf(x3/zf,x2/2/pi,x1/2/pi,Gm-1),shading faceted;colorbar('horiz')运行结果:Error usi
matlab中4维图画法
a0=(1:0.2:2);
b0=2*pi*(1:0.2:2);
zf=b0^2/2*1;
z0=zf*(1:0.2:2);
x1,x2,x3为a0,b0,z0的已知函数.
[X,Y,Z]=meshgrid(x3/zf,x2/2/pi,x1/2/pi,Gm-1)
surf(x3/zf,x2/2/pi,x1/2/pi,Gm-1),shading faceted;colorbar('horiz')
运行结果:
Error using ==> mpower
Matrix must be square.
Error in ==> fig2 at 10
zf=b0^2/2*1;
matlab中4维图画法a0=(1:0.2:2);b0=2*pi*(1:0.2:2);zf=b0^2/2*1;z0=zf*(1:0.2:2);x1,x2,x3为a0,b0,z0的已知函数.[X,Y,Z]=meshgrid(x3/zf,x2/2/pi,x1/2/pi,Gm-1)surf(x3/zf,x2/2/pi,x1/2/pi,Gm-1),shading faceted;colorbar('horiz')运行结果:Error usi
以下两句要加点乘,即
zf=b0.^2/2*1;
z0=zf.*(1:0.2:2);