Integral of sinx in MatLab

  1. Please tell me the code or whatever we call it for finding the integral of sinx in MatLab?
    Also how to evaluate definite integral from, say, 1 to 2?
     
  2. jcsd
  3. syms x
    fun=inline(sin(x))
    int=quad(fun,1,2)
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook
Similar discussions for: Integral of sinx in MatLab
Loading...