The following Matlab project contains the source code and Matlab examples used for n dimensional trapezoidal integral. See summary :) Well, this is a recursive function that calculates any definite N dimensional integral. Since the upper bound of Matlab recursiveness is 5000, you can use this function up to 5000 dimensions. Enjoy.
The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.