I have a data where I need to return the values of the lows by keeping the peaks as reference .
Sample data:
A=[24,23,22,21,24,25,27,28,35,38,32,26,25,