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 个)

Community Treasure Hunt

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

Start Hunting!

Translated by