f=@(x)8.3151e+006*x.^3-7.9844e+005*x.^2+20672*x-0.586
result = quad(f,0,.018)
or
p = [8315100 -798440 20672 -0.586] % coefficients of polynom
result = diff(polyval(polyint(p),[0 .018]))
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!