Integration in MATLAB with symbolic integration limits

63 views (last 30 days)
How can I integrate this with MATLAB?
integral from 0 to x of x^2 and can I store the resulting function into a variable?
I have tried the int function. It doesn't work for symbolic integ.limits.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 18 Sep 2013
syms x
y=x^2
f=int(y,1,x) % integration between 1 and x

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!