Integral a function handle of two variables with respect to a variable
15 ビュー (過去 30 日間)
古いコメントを表示
f = @(x, y) x+y;
g = @(x) integral(@(y) f(x,y),0,1)
t = (0:0.1:1);
g(t)
It is wrong! How can I get the expected result?
0 件のコメント
採用された回答
Walter Roberson
2021 年 12 月 2 日
f = @(x, y) x+y;
g = @(x) integral(@(y) f(x,y), 0, 1, 'arrayvalued', true)
t = (0:0.1:1);
g(t)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!