Can I use integral with symbolic/variable interval values?
Show older comments
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! :)
Accepted Answer
More Answers (1)
Brede Løvik Lillehammer
on 21 Jan 2014
1 vote
1 Comment
Walter Roberson
on 21 Jan 2014
int() is for symbolic integration. integral() is for numeric integration.
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!