p = [1 0 0] % p = x^2

% Indefinite Integral
polyint(p)  % Ans = x^3/3 we hope!



% Definite Integral (via numerical integration) 
trapz(-6:6,polyval(p,-6:6))
