If the locations of the peaks are indices into the independent and dependent variable vectors, then something like this shoud work:
x_val = x(location_index);
y_val = y(location_index);
.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!