View License

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

» Watch video

Highlights from
Trapezoid Rule Demonstration

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.37 KB File ID: #29473 Version: 1.1
image thumbnail

Trapezoid Rule Demonstration



20 Nov 2010 (Updated )

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

| Watch this File

File Information

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.

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 7.8 (R2009a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
23 Nov 2010 Sean de

Sean de (view profile)

Needs the Symbolic Math Toolbox, not Simulink.

Comment only
23 Nov 2010 1.1

Update: Needs Symbolic math toolbox, not simulink.

Contact us