Integral a function handle of two variables with respect to a variable
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Jingyu Liu
il 2 Dic 2021
Commentato: Jingyu Liu
il 2 Dic 2021
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 Commenti
Risposta accettata
Walter Roberson
il 2 Dic 2021
f = @(x, y) x+y;
g = @(x) integral(@(y) f(x,y), 0, 1, 'arrayvalued', true)
t = (0:0.1:1);
g(t)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Whos in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!