It's unclear what some of your variables are and how they relate to each other. For example, what's the second row of y? How does timeSeries (1x239766) related to y (2x100)? What is x?
Here's how to circle the peaks when (x,y(1,:)) is used to plot the data.
To address the time cutoffs of 590-591, I'll need more info.