QUADSHOW

Display the points used to integrate a function using QUAD
975 Downloads
Aktualisiert 29. Mai 2007

Lizenz anzeigen

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.

Zitieren als

Steven Lord (2024). QUADSHOW (https://www.mathworks.com/matlabcentral/fileexchange/15117-quadshow), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Just for fun finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0