I'm trying to use the function trapz to integrate a column vector of EMG data.
trapz(G);
However, it keeps coming up with the warning:
'Subscript indices must either be real positive integers or logicals'
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.
Any help would be greatly appreciated. Many thanks.