Clear Filters
Clear Filters

Integrating function from lower to upper limit getting NaN in return

1 view (last 30 days)
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)

Answers (1)

Torsten
Torsten on 1 Oct 2018
cov22(ii) =((2*pi*lambdaS)/A2)*integral2(cov2,0,inf,@(x)P1*x,inf)

Categories

Find more on Mathematics in Help Center and File Exchange

Products


Release

R2017a

Community Treasure Hunt

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

Start Hunting!