No BSD License  

Highlights from
dblquad over general domain

Be the first to rate this file! 19 Downloads (last 30 days) File Size: 4.41 KB File ID: #10639
image thumbnail

dblquad over general domain

by

 

05 Apr 2006 (Updated )

Extension of dblquad over a rectangle domain to general case.

| Watch this File

File Information
Description

With slight modification of dblquad, the code implements double integration over x from x1(y) to x2(y), and y from ymin to ymax.

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
05 Apr 2006 Matt Fig

As for the demo, it does give the correct answer, and also for the other cases I checked. Clean up the documentation (as John eluded to) and don't have the demo "clear all", then I may give a higher rating. It does integrate what is considered a 'general region' for this type of problem. Note also that two of the edges need not be parallel, as in integrating f(x,y) over the domain x^3<y<sqrt(x) for 0<x<1.

05 Apr 2006 John D'Errico

I was looking forward to a useful tool, but was left highly disappointed. The author has just copied dblquad, renaming it dblquadx. Apparently the arguments now mean different things, but the help is the old help, which is not only meaningless in this function, but now totally incorrect. At least the MathWorks copyright notice was also copied over.
I'll also comment that even with correct help, the website description is still incorrect, as the domain is not general at all. It has a very specific pseudo-trapezoidal shape, where two of the edges of the polygon are parallel, and the other two edges are general curvilinear shapes. I have not verified that it works or not.

Contact us