do not see the function that is being integrated anywhere in your Question. However the error message tells you exactly what to do:
Use POWER (.^) for elementwise power.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!