Integrating function from lower to upper limit getting NaN in return

조회 수: 6 (최근 30일)
Arif Ullah khan
Arif Ullah khan 2018년 8월 28일
답변: Torsten 2018년 10월 1일
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
Arif Ullah khan
Arif Ullah khan 2018년 10월 1일
Sir the code and the main equation is given above

댓글을 달려면 로그인하십시오.

답변 (1개)

Torsten
Torsten 2018년 10월 1일
cov22(ii) =((2*pi*lambdaS)/A2)*integral2(cov2,0,inf,@(x)P1*x,inf)

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by