title: How to determine the area under the curve using matlab?
body: <p>if i have x data</p>
  
  <pre><code>x = [a, b, c, d ...]
  </code></pre>
  
  <p>and y data</p>
  
  <pre><code>y= [a, b, c, d...]
  </code></pre>
  
  <p>and assumes that this is the plot of that x and y </p>
  
  <p><a href="https://i.stack.imgur.com/GwLj2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GwLj2.png" alt="enter image description here"></a></p>
  
  <p>How can i get or determine the area under the curve? thanks in advance!</p>