How can I specify the maximum number of quadrature points used in integral2?

1 view (last 30 days)
The following code finds the area of a circle using integral2. I want to know how many quadrature points are used in this evaluation. I also want to be able to make a plot of # of quadrature points vs. error. To do this, I need to be able to set the maximum number of quadrature points. Is there support for this in Matlab?
MWE:
integral2(@(x,y) ones(size(x)), -1,1, @(x) -sqrt(1-x.^2), @(x) sqrt(1-x.^2))

Answers (0)

Categories

Find more on Numerical Integration and Differential Equations 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!