Somebody could help me.
I use Matlab program.
Suppose, I have vector A,
A = [0 0 1 2 3 5 0 0 0 0 0 2 3 6 7 0 0 0 0 1 1 2 3 4 1]
I would like to get local maximum values and location from the vector A. So, the answer that I would like to get is following.
maxValue = 5, 7 and 4;
maxLocation = 6, 15 and 24;
thank you for your kind.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…