Numerical solution of integral equation with parametric variable
Mostrar comentarios más antiguos
Hello!
Please, how can I solve integral equation in Matlab
L = integral (f(b,t)) dt for third variable (parametric variable b)
Limits of integral are t0, t1.
1 comentario
bym
el 7 de Abr. de 2011
numerically or symbolically?
Respuesta aceptada
Más respuestas (2)
Matt Tearle
el 8 de Abr. de 2011
A variation on Jarrod's approach, using function handles (because everyone loves function handles):
myFunc = @(t,b) exp(t*b); % or whatever
t0 = 0;
t1 = 3;
L = 50;
f = @(b) quad(@(t) myFunc(t,b),t0,t1);
bsolve = fzero(f,2);
Or fsolve instead of fzero if you have Optimization Toolbox.
Walter Roberson
el 11 de Abr. de 2011
If you have the symbolic toolbox,
syms x b
solve(int(f(x,b),x,t0,t1)-L,b)
In theory if it can be solved symbolically it will do so, and if not then MuPad should switch to numeric integrations, I think.
Categorías
Más información sobre Numeric Solvers en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!