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 commentaires

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

Connectez-vous pour commenter.

Réponses (1)

Catégories

En savoir plus sur Mathematics dans Centre d'aide et File Exchange

Produits

Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by