MATLAB: Integration in MATLAB with symbolic integration limits

definitedefinite integrationintegrationMATLABsymbolic integration limits

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.

Best Answer

syms x
y=x^2
f=int(y,1,x) % integration between 1 and x
Related Question