Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Integral of a handle function which contains another numerical integral inside

조회 수: 1 (최근 30일)
NooshinY
NooshinY 2017년 11월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
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