title: Using trapz to integrate a column vector
body: <p>I'm trying to use the function trapz to integrate a column vector of EMG data.</p>
  
  <blockquote>
    <p>trapz(G);</p>
  </blockquote>
  
  <p>However, it keeps coming up with the warning:</p>
  
  <p>'Subscript indices must either be real positive integers or logicals'</p>
  
  <p>I'm a complete novice so I am unsure why this is happening. All the values in my column vector are positive, and all of the online examples I have seen seem to be similar to mine yet mine does not work.</p>
  
  <p>Any help would be greatly appreciated. Many thanks.</p>