How to extract only peaks and troughs from a curve
Best Answer
If you want to identify the individual peaks and troughs, use islocalmax and islocalmin, or findpeaks on the positive and negative versions of your signal respectively:
Like that, each value of "a" is correlated to each value of "b", but applying the formula of the correlation, the correlation of two single numbers is NaN. To compute the correlation correctly, traspose the input vectors
Best Answer