Code covered by the BSD License  

Highlights from
Trapezoid Rule Demonstration

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

Trapezoid Rule Demonstration

by

 

20 Nov 2010 (Updated )

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

| Watch this File

File Information
Description

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

Needs the Symbolic Math Toolbox, not Simulink.

Updates
23 Nov 2010

Update: Needs Symbolic math toolbox, not simulink.

Contact us