Problem 1031. Composite Trapezoidal Rule for Numeric Integration
Use the trapezoidal rule to numerically integrate a function, f(x), passed as the first argument, between upper and lower limits of integration, x=a and x=b,passed as the second and third arguments, respectively. Use n equal intervals, the optional fourth argument, for composite trapezoidal rule.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers113
Suggested Problems
-
Select every other element of a vector
35932 Solvers
-
1318 Solvers
-
I've got the power! (Inspired by Project Euler problem 29)
141 Solvers
-
383 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
709 Solvers
More from this Author17
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!