Can anybody help me to solve this?

조회 수: 1 (최근 30일)
ASWATHI V
ASWATHI V 2018년 12월 1일
댓글: ASWATHI V 2018년 12월 2일
How can I compute this integral (numerical integration) in matlab?
integral (integral(f1(x))*integral(f2(x)))
where the inner integrals have same limit and the outer integral is from zero to infinity.
  댓글 수: 10
Walter Roberson
Walter Roberson 2018년 12월 1일
f3 = @(y) integral(f1,(I/p_umax),inf);
f4 = @(y) integral2(f2,(I/p_umax),inf);
You used integral2() for f2, but you only supplied one set of bounds. It should probably be integral()
ASWATHI V
ASWATHI V 2018년 12월 2일
''I'' is a constant.
I have changed integra2

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 12월 1일
After having defined f1 and f2 as symbolic functions, and assigning values to the limits
int( int(f1(x), x, inner_limit_low, inner_limit_high) * int(f2(x), x, inner_limit_low, inner_limit_high), variable_of_outer_integration, 0, inf)
Note that variable_of_outer_integration cannot be x: you defined the inner integrations as being definite integrals, so the function argument x will not appear in the result of their int()
  댓글 수: 8
ASWATHI V
ASWATHI V 2018년 12월 2일
I = 1000;
sig_2 = 1;
P_p = 100;
lamda_1 = 1;
lamda_I1 = 1.5;
lama_I3 = 1.5;
alpha_1 = 0.3;
ASWATHI V
ASWATHI V 2018년 12월 2일
x from 0 to infinity
y from some value (it could be any positive value hich depends on so many other values, let it be 100) to infinity

댓글을 달려면 로그인하십시오.

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by