warning: an infinite or non numeric value was encountered.

1 次查看(过去 30 天)
Hello, i want to get an answer of a function which includes three integrals.
The function is formulated as
where the Beta function is
.
The codes are
function f_integral(Noise,Path_loss_fac,Thre_Pr,s)
syms v u t
Thre_SINR = exp(t)-1;
f1 = 1/(1+v^(Path_loss_fac/2));
function_beta = 1 + Thre_SINR^(2/Path_loss_fac)*int(f1,v,Thre_SINR^(2/Path_loss_fac),inf);
f2 = s*exp(-s*u*function_beta)*exp(-Thre_SINR*Noise*u^(2/Path_loss_fac));
f3 = matlabFunction(f2);
judge_temp = integral2(f3,0,inf,0,inf);
end
I calculate the inner Beta function with int() method and the outer integral with integral2() method respectively.
When the code runs, Matlab replies 'warning: an infinite or non numeric value was encountered'.
I want to know how to get this integral. Thanks a lot!! : )
PS: It is notable that the answer exists when changing the integral2(f3,0,inf,0,inf) to integral2(f3,0,700,0,inf).

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by