I have been using trapz to integrate a vector of equally spaced data. Is there a more accurate method available in script form that carries out the Simpson's method or perhaps the Newton-Cotes method? Thanks.
MATLAB: Numerical Integration of Equally Spaced Data
equally spaced dataMATLABnumerical integrationsimpsons ruletrapezoid rule
Best Answer