Numerical integration of a function containing symbolic characters
1 view (last 30 days)
Show older comments
clear
clc
E=@(x) x.^2
syms A B
var = integral(@(x) E(x).*(A*x+B),0,1)
Hello everybody,
I need to calculate this kind of integral, and expect a result, for example (10A+B).
Is there a way by using integral or quad command? (Actually anything but trapz)
Thank you.
0 Comments
Answers (1)
See Also
Categories
Find more on Calculus 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!