Code covered by the BSD License  

Highlights from
QUADSHOW

2.0

2.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 2.66 KB File ID: #15117

QUADSHOW

by Steven Lord

 

25 May 2007 (Updated 29 May 2007)

Display the points used to integrate a function using QUAD

| Watch this File

File Information
Description

DESCRIPTION:

QUADSHOW allows users to see the sequence of points at which QUAD evaluates their function during the course of numeric integration.

RATIONALE:

In the past, some users of QUAD have expressed confusion when they specified very large limits when trying to integrate functions that are nonzero over small intervals, and receive results that do not agree with other answers they have computed via other methods. With QUADSHOW, they can see where QUAD is evaluating their function, and can try to adjust their limits of integration appropriately.

QUAD expects the function the user wants to integrate to return an output vector the same size as the input vector. QUADSHOW detects when this is not the case and informs the user of this error.

The calling syntax for QUADSHOW is the same as the calling syntax for QUAD; this is deliberate, as it allows users to easily use QUADSHOW as a troubleshooting tool.

SUPPORTED VERSIONS:

This function uses nested functions, which were introduced in MATLAB 7.0 (R14), so it will not run in versions of MATLAB prior to 7.0. I have tested it in both MATLAB 7.0 (R14) and MATLAB 7.4 (R2007a) on Windows.

AREAS FOR ENHANCEMENT:

One possible avenue for enhancement of this functionality would be to create a DBLQUADSHOW to show the progress of DBLQUAD. I intend to create such a function at some future time, but if you want to adapt QUADSHOW for this purpose before I do, please feel free to do so and post it to the File Exchange.

MATLAB release MATLAB 7.4 (R2007a)
Other requirements Will not run on versions of MATLAB prior to 7.0 (R14) due to the use of nested functions.
Tags for This File  
Everyone's Tags
evaluate, function, integration, quad integrate, quadshow
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
27 Jun 2007 michael bane

useful, but more useful would be to also plot the actual f(x) so the quad pts can be seen in relation to what needs integrating

Contact us