我正在尝试在 matlab 中评估以下积分: 这是我的代码:
alpha = 2;
F1 = @(u,v) 2*u.^2.*v./(1+2*z.*u.*v);
F2 = @(v) v;
F3 = @(z) exp(-z)./sqrt(z);
I1 = dblquad(F1,0,1e5,2,1e5);
I2 = quad(F2,2,1e5);
quad(F3*exp(-(I2-I1)),0,1e5);
我收到这些错误:
Error in ==> @(u,v)2*u.^2.*v./(1+2*z.*u.*v)
Error in ==> dblquad>innerintegral at 73
fcl = intfcn(xmin, y(1), varargin{:}); %evaluate only to get the class below
Error in ==> quad at 76
y = f(x, varargin{:});
Error in ==> dblquad at 53
Q = quadf(@innerintegral, ymin, ymax, tol, trace, intfcn, ...
这些错误不多说了。任何帮助表示赞赏。我选择1e5
代表无限。