Why does QUADL in MATLAB 7.2 (R2006a) not work as well as QUAD8?
1 view (last 30 days)
Show older comments
I am performing an integration that executes well in older versions of MATLAB using QUAD8. When I execute it with QUADL, it is much slower and gives the following warning regarding a singularity:
Warning: Maximum function count exceeded; singularity likely.
> In quadl at 98
and then returns incorrect results.
Accepted Answer
MathWorks Support Team
on 27 Jun 2009
This result is most likely due to the default absolute error tolerance used for the QUADL function. Try setting a larger tolerance using the tol input to the QUADL function.
If QUADL is still returning incorrect results and if the values in your integrand have a large difference in magnitude, try renormalizing the values so that they are similar. Having values with such a large difference in magnitude in your integrand may cause an accumulation of roundoff errors in the QUADL algorithm.
0 Comments
More Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!