You are probably using an older version of MATLAB. The INTEGRAL2 function was added along with INTEGRAL and INTEGRAL3 in R2012a, according to the release notes.
You can either upgrade or use the similar quadrature functions: QUAD, QUAD2D.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!