HERE are two columns discrete data,the frequency is 20Hz，i need integrate them, the equation is
i try to write some codes,but i don't know it is right or not. Can someone help me check it??
but the discrete data should use the 'trap' function, how can i modify the code?