Integral a function handle of two variables with respect to a variable
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jingyu Liu
el 2 de Dic. de 2021
Comentada: Jingyu Liu
el 2 de Dic. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 2 de Dic. de 2021
f = @(x, y) x+y;
g = @(x) integral(@(y) f(x,y), 0, 1, 'arrayvalued', true)
t = (0:0.1:1);
g(t)
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!