I have a set data and I'd like to find the upper and lower peaks of it.
In Matlab, I am trying findpeaks
command, but the result is strange.
Here is my simple code:
[pks,locs] = findpeaks(Data);
plot(locs,pks,'or')
Can someone guide me on how I can find only the very top and very bottom peaks of the data?