Possible Duplicate:
How to find all the local minima/maxima in a range
I have the solution of the following non-linear system:
sol1 = NDSolve[
{x'[t] == -(y[t] + z[t]),
y'[t] == x[t] + 0.2 y[t],
z'[t] == 0.2 + x[t] z[t] - 5.7 z[t],
x[0] == 1, y[0] == 1, z[0] == 1
},
{x, y, z},
{t, 0, 100}
]
How can I find the $k^{th}$ local maximum of $z(t)$, i.e. $z(k)$, and then plot $z(k+1)$ vs. $z(k)$? There is an example in the "Mapping local maxima" section in Rössler attractor's wiki page. I am working with Wolfram Mathematica 8.0.

WhenEventapproach, no need to worry about oddities of numerical optimization algorithms :) – ssch Jan 04 '13 at 01:49pts = Range[10]; ListPlot[{Most@pts, Rest@pts}\[Transpose]]– ssch Jan 04 '13 at 23:00