Assigning Values to the neighbors same value in MATLAB
问题 I am having a small issue but I am clueless where I am at fault. Can someone please guide me the right way? Thanks in advance. What I have done. My codes finds local maxima’s. Bring down from local maxima to a certain point. Assign the neighbors that are greater than the downsized value, the value of downsized point. Small Example X = [1 0 1 4.3 4.5 5 4.3 4.2 0 0 0 2 6.2 6.3 7 6.2 7.4 8 7.2 1 2 3 4 2]; Local maxima’s are 5, 7, 8, and 4 Go down to certain point. Like 4, 6, 7, 3. Assign