movmax - remove duplicated
15 次查看(过去 30 天)
显示 更早的评论
Hello,
I am using movmax in order to find local maximum values on a very long vector.
i want to create a vector which will not include the repetitive number of the maximum value.
it means that if my vector is: y= [2,3,4,5,4,3,2]
and I use: movmax(y,3)
the result will be: 3 4 5 5 5 4 3
what I wish to get is that if there is repetitive maximum value it will show it only once:
the result will be: 3 4 5 4 3
how can I do that?
0 个评论
回答(2 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!