Can I use integral with symbolic/variable interval values?
Mostrar comentarios más antiguos
Hi. I'm wondering if it is possible to use, in some way, variable or symbolic interval values for the integral function. I need to solve a similar kind of problem shown below, can't think of a way to do it (my functions are quite huge, so it's not easy to somehow simplify it).
- Function 1: f(s)=...
- Function 2: g(x)=...
- f_new = integral(@(s) f, 0, x)
Now, both f_new and g is a function of x.
- Final function = integral(@(x) f_new*g, 0, 2)
Hope the question is somewhat clear. If not, just ask. Any help is appreciated! :)
Respuesta aceptada
Más respuestas (1)
Brede Løvik Lillehammer
el 21 de En. de 2014
1 voto
1 comentario
Walter Roberson
el 21 de En. de 2014
int() is for symbolic integration. integral() is for numeric integration.
Categorías
Más información sobre Numerical Integration and Differentiation 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!