|
|
| File Information |
| Description |
Fast, fully vectorised version of the Simpson's method for 2D domains. This code avoids the use of any for loops etc. For a given level of accuracy it can be an order of magnitude or more faster than dblquad.
Examples are provided within the code.
Useage:
ans = simp2D('func',xs,xe,ys,ye,NX,NY)
Input parameters:
func - 2D function that accepts vector inputs (otherwise
incorrect results can occur)
xs, xe - x-limits of integration
ys, ye - y-limits of integration
NX - number of integration intervals in the x-direction (should be even)
NY - number of integration intervals in the y-direction (should be even) |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
| Other requirements |
On a system with 1GB memory you'll be restricted to less than 4096 intervals in each direction. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 28 Sep 2010 |
erick
|
|
|
| 09 Dec 2010 |
ehsan
|
|
|
|
Contact us at files@mathworks.com