Integrating function from lower to upper limit getting NaN in return

Hi!! I need help in the calculation of the integral of the function. I am integrating a function from lower to upper limit but i am getting NaN in return while the answer should be between 0 and 1. I tried int, integral and quad function as well but still i am getting NaN. the following is the matlab code.
where H(a,t) is equal to zero. G(a,t) is hypergeometeric function. i want to find this integral in matlab but i am getting NanN in return can anyone please help in finding this integral. Where lambda, A,a,t,N,Pj,Pk,G(a,t),H(a,t)=0,R are constant terms and Pjk^2=(Pk/Pj)^(2/a) and fy0(yo) is function of y= and equals to fy0(y0)=2y0/R^2. Wj and y0 are variables of integeration
ts = -(t*N0/P);
cov2=@(x,y) x.*exp((ts.*(x.^(a)))-(pi*((((Ptm/Pts).^(2/(a))))+(((Pts/Pts).^(2/(a)))))).*(((a*(G(a,t)+1))+(lambdaM*(G(a,t)+1)))*(x.^2))).*(1./(1+(t.*(y./(P1.*x)).^(-a)))).*((2.*y)./(R^2));
cov22(ii) =((2*pi*lambdaS)/A2)*integral2(cov2,0,inf,(P2*DistSmallcell),inf)

3 comentarios

Your code is missing.
Your code is still missing.
Sir the code and the main equation is given above

Iniciar sesión para comentar.

Respuestas (1)

cov22(ii) =((2*pi*lambdaS)/A2)*integral2(cov2,0,inf,@(x)P1*x,inf)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Productos

Versión

R2017a

Preguntada:

el 28 de Ag. de 2018

Respondida:

el 1 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by