How to write Trapezoidal rule Matlab?

Question : Trapezoidal rule Matlab code to calculates the numerical approximation to integral x^2 from 0 to 1 with 4 subintervals? Solution : Trapezoidal rule to calculate the numerical approximation of the definite integral is given as \[\int_{a}^{b} f(x) dx…

This Question has been answered. 

Please Subscribe to See Answer or To Get Homework Help