Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Integral of sinx in MatLab

  1. Aug 12, 2010 #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. Aug 12, 2010 #2
    syms x
    fun=inline(sin(x))
    int=quad(fun,1,2)
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Integral of sinx in MatLab
  1. Integration in Matlab (Replies: 3)

  2. Integration in Matlab (Replies: 1)

  3. Matlab integral (Replies: 0)

  4. Integration in matlab (Replies: 0)

  5. Integration in matlab (Replies: 3)

Loading...