フィルターのクリア

Integrating function from lower to upper limit getting NaN in return

1 回表示 (過去 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 件のコメント
H. Paul Keeler
H. Paul Keeler 2018 年 10 月 1 日
Your code is still missing.
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 Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by