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

Integrate data in MATLAB

  1. Jan 25, 2009 #1
    I've been reading up in the help files on MATLAB for this one, but it's a bit tricky.

    I have been able to solve it on my own by using a FOR loop, but it's not completely accurate as it's just adding up rectangles at the average between two values.

    Here's the problem:

    Does there exist a matlab command that can integrate something based on just coordinates?
  2. jcsd
  3. Jan 25, 2009 #2
    There are different numerical methods to achieve this.

    Depends what you want to use. I don't know about the built in functions but it is easier to google for numerical integration matlab functions which can be used by your matlab file.
    Scroll down to Contents of integrate directory
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook