Composite Trapezoid Method Matlab