|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
function fun=test_sy(x,y)
fun = 1./( sqrt(x + y) .* (1 + x + y).^2 );
>> quad2d(@(x,y) test_sy,0,1,2,9)
??? Input argument "x" is undefined.
Error in ==> test_sy at 3
fun = 1./( sqrt(x + y) .* (1 + x + y).^2 );
Error in ==> @(x,y)test_sy
Error in ==> quad2d>tensor at 355
Z = FUN(X,Y); NFE = NFE + 1;
Error in ==> quad2d at 169
[Qsub,esub] = tensor(thetaL,thetaR,phiB,phiT);
%*************************************
如果直接用quad2d却能成功
%*************************************
>> quad2d(@(x,y) 1./( sqrt(x + y) .* (1 + x + y).^2 ),0,1,2,9)
ans =
0.0937
%**************************************
请教各位是为什么?
|
|