integral using matlab

Discussion in 'Programmer's Corner' started by theo23, Feb 23, 2009.

  1. theo23

    Thread Starter Member

    Nov 29, 2008
    16
    0
    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!!
     
Loading...