Determine unknown integral limits

조회 수: 2 (최근 30일)
Adam
Adam 2014년 8월 20일
Dear all,
I calculated the integral from x(1) to x(end) of a given function as fellow:
syms a1 a2
Int1=quad(@ppval,x(1),x(end),[],[],pp)
So Int1 is now known.
I would like to take only 30 % of this integral and find the unknown upper limit (a2):
% Find the uper limit of the integral [0,a2], a2 is unkown
fun1=@(a2)quad(@ppval,0,a2,[],[],pp)-0.30*Int1
funq1=@(a2)fun1
a2=fzero(funq1(a2),[0,x(end)])
Assuming that now I would like to find a1 and b2:
How can I do it.
I highly appreciate your helps.
cheers
Adam

답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by