title: Mark 1D-array in a 2D-plot
body: <p>I have a noisy periodic signal in Matlab that I've extracted peaks from with the help of <code>[peak loc]=findpeaks(signal)</code>. However unrealistic outliers are also inside the <code>peak</code> array.
  I set min- and max-values  for <code>peak</code> and so get a shorter <code>peak</code> array. Now I would love to mark this shorter subset of original <code>peak</code> into the original <code>plot(loc,peak)</code>, whereat I'd get an error, since <code>loc</code> has kept its original length.</p>
  
  <p>My questions:</p>
  
  <ul>
  <li><p>Is there a way in the fashion of a container.map or something similar that allows to adapt <code>loc</code> to <code>peak</code> with consistence of the loc-peak assignments?</p>
  
  <ul>
  <li>How can I alternatively plot the shortened <code>peak</code> array onto the original signal plot?</li>
  </ul></li>
  </ul>
  
  <p>Thanks a lot!</p>