integral using matlab

Thread Starter

theo23

Joined Nov 29, 2008
16
Hi,I have this part of my code.I want to integrate total with respect to A(0,inf).Which is the best way to calculate the integral?int,quad,quadgk,quadl?I don't know which method i can use in this code.Which is the faster way?
sum=A+Enr+(k/M);
sum2=-2*((sum/d).^2);
total=exp(sum2);
Thank you!!
 
Top