File Exchange

image thumbnail

Trapezoid Rule Demonstration

version 1.1 (1.37 KB) by

It lets you visualize the trapezoids used in approximating the definite integral.

6 Downloads

Updated

View License

trapezoid_rule accepts a function of a single variable, a 1x2 vector which defines the limits of integration and the number of points that are used in the approximation.

The output contains the approximation and the figure showing the method.

The function is used only for visualization purposes as trapz is already built-in.

Comments and Ratings (1)

Sean de

Sean de (view profile)

Needs the Symbolic Math Toolbox, not Simulink.

Updates

1.1

Update: Needs Symbolic math toolbox, not simulink.

MATLAB Release
MATLAB 7.8 (R2009a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video