MATLAB中二重积分clearintegrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y).*0.3318*besselj(1,0.6083*x).*sin(0.5518*y));xmin=-6.3;xmax=6.3;ymin=-5;ymax=5;q=dblquad(integrnd,xmin,xmax,ymin,ymax);

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 23:13:30
MATLAB中二重积分clearintegrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y).*0.3318*besselj(1,0.6083*x

MATLAB中二重积分clearintegrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y).*0.3318*besselj(1,0.6083*x).*sin(0.5518*y));xmin=-6.3;xmax=6.3;ymin=-5;ymax=5;q=dblquad(integrnd,xmin,xmax,ymin,ymax);
MATLAB中二重积分
clear
integrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y).*0.3318*besselj(1,0.6083*x).*sin(0.5518*y));
xmin=-6.3;
xmax=6.3;
ymin=-5;
ymax=5;
q=dblquad(integrnd,xmin,xmax,ymin,ymax);

MATLAB中二重积分clearintegrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y).*0.3318*besselj(1,0.6083*x).*sin(0.5518*y));xmin=-6.3;xmax=6.3;ymin=-5;ymax=5;q=dblquad(integrnd,xmin,xmax,ymin,ymax);

有个不必要的点乘,反而该用点乘的地方未用点乘.

 

integrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y).*0.3318*besselj(1,0.6083*x).*sin(0.5518*y));

改为:

integrnd=@(x,y)(0.1719*besselj(0,0.3817*x).*cos(0.2761*y)*0.3318.*besselj(1,0.6083*x).*sin(0.5518*y));