Can I use integral with symbolic/variable interval values?
Ältere Kommentare anzeigen
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! :)
Akzeptierte Antwort
Weitere Antworten (1)
Brede Løvik Lillehammer
am 21 Jan. 2014
1 Stimme
1 Kommentar
Walter Roberson
am 21 Jan. 2014
int() is for symbolic integration. integral() is for numeric integration.
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!