Unexpected MATLAB operator.[x,y]=meshgrid(100:1:500,-200:1:200);z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));shading
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 16:42:10
Unexpected MATLAB operator.[x,y]=meshgrid(100:1:500,-200:1:200);z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));shading
Unexpected MATLAB operator.
[x,y]=meshgrid(100:1:500,-200:1:200);
z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));
shading flat;
surf(x,y,z)
Unexpected MATLAB operator.[x,y]=meshgrid(100:1:500,-200:1:200);z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));shading
exp之前少了个符号
clear;
clc
z=10./(2*pi.*(4+(2.*x./(x.^2+y.^2).^0.5)).*0.044.*x.^2.*((1+0.0001.*x).^0.5)).*exp(-y.^2./(2.*(0.22.*x*(1+0.0001.*x)).^0.5)).*(exp(-9.^2./(0.08.*x.^2))+exp(-11.^2./(0.08.*x.^2)));
[x,y]=meshgrid(100:1:500,-200:1:200);