VEGAS Monte Carlo code for integrating a function

I need a matlab code that implements the VEGAS Monte Carlo sampling method to integrate numerically a given function. I need both 1-D and 2-D integrals. In spite of my efforts, I was unable to find any matlab code for this task, and I don't feel like translating one of the existing C++ or Fortran codes (e.g. Numerical Recipes).
Thank you very much.

Answers (1)

Asked:

on 18 Mar 2014

Answered:

on 27 Jun 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!