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)
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook