Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Integral of a handle function which contains another numerical integral inside
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
I want to calculate integral of this function bellow, but numconv is another numerical integral, it gives me an answer, but it takes a lot of time to calculate it. so I want to try another intergral like quad ,... but it gives me error because of numconv, so what should I do to expedite calculating this integral?
Rt=@(t)(((normcdf(D1,miuw1,sw1)).^m)*(poisspdf(m,lamda.*t))*numconv(H11,t,alpha11));
AB=integral(Rt,a,b,'ArrayValued',true)
Numconv is as follow:
Q=@(u)(gamcdf(H-u,alpha.*t,beta)).*(beta.^(m.*alpha2).*(u.^((m.*alpha2)-1)).*exp(-beta.*u))./gamma(m.*alpha2);
U=quad(Q,0,H);
Could anyone help me revise these, to expedite my code? because I wanna use it in a simulation and it takes like 2 days to complete, because it should calculate this integral at each run.
0 件のコメント
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!