Check out example codes for "integral in matlab". It will help you in understanding the concepts better.
Code Example 1
fun = @(x) exp(-x.^2).*log(x).^2;
q = integral(fun,xmin,xmax)
Code Example 2
int(f)
Learn ReactJs, React Native from akashmittal.com