How to compute a numerical integration which still need a symbolic limit as a definition?
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
I need to utilize a numerical integration built-in function in Matlab. However, I still need to maintain the symbolic limit as a definition. And then, later, I'll take another numerical integral function over that symbolic variable. For example, I want to compute: f = @(x) a.*x; g = @(a) a.^3; quad(g.*quad(f,a,1),0,1)
Can you help me find any assumption to make the code works? Thank You.
0 件のコメント
回答 (3 件)
Mischa Kim
2014 年 4 月 19 日
Octavina, try
syms a
f = @(x) a.*x;
g = @(a) a.^3;
intgf = int(g*int(f,a,1),0,1)
0 件のコメント
Andrei Bobrov
2014 年 4 月 22 日
編集済み: Andrei Bobrov
2014 年 4 月 22 日
f = @(x)sym('a').*x;
f1 = matlabFunction(int(f,sym('a'),1));
g = @(a)a.^3;
out = quad(@(a)f1(a).*g(a),0,1);
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!