Date: Apr 20, 2013 1:37 AM
Author: PO~~
Subject: how to retieve value?

a=[4 8 6 3 1 2 9 6 5 4 3 6 8 9 11 7 6 3 2 1];
b=[2 4 6 8 10 12 14 16 18 20 22 26 5 9 1 8 4 1 5 6];

I want to find local peaks of a ..
the result are 8,9,11

therefore, i want to retieve value from b to create a new vector according to 8,9,11

the final result is new vector=[4 14 1]