Can anybody help me to solve this?
7 ビュー (過去 30 日間)
古いコメントを表示
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
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()
回答 (1 件)
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 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!