A double integration of the tabulated data.
2K Downloads
Updated 12 Jan 2007
No License
A double integration of the tabulated data. f(x,y) may be generated in terms of meshgrid. Double integral computes simply by approximation of the integral for f(x,y) via the trapezoidal method.
Firstly, an integration loop within inner integral over X is performed obtaining the function of area A(y). Secondly, outer loop integration is performed for A(y) over y limits
Example:
Q = dblquad(inline('y*sin(x)+x*cos(y)'), pi, 2*pi, 0, pi);
Q = -9.8696
[X,Y] = meshgrid(pi:pi/100:2*pi, 0:pi/100:pi );
Z=Y.*sin(X)+X.*cos(Y);
int_2D_tabulated(X,Y, Z )
ans = -9.8688
Cite As
Robertas balevicius (2023). A double integration of the tabulated data. (https://www.mathworks.com/matlabcentral/fileexchange/13644-a-double-integration-of-the-tabulated-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Numerical Integration and Differential Equations > Numerical Integration and Differentiation >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |