08 August 2017 2 9K Report

I need to clip or make my signal flat at local maximas.

e.g if I get a local maxima at 5,1,7,8,4 then want to cut this local maxima let’s suppose to (pks-1) and plot it means it will plot the signal at 4,0,6,7,3 but with flat curve.

Similarly I want to try this for different combinations like (pks-0.4) or in short Range from (0.2 ----1.3) and make  plots .Range can be provided by putting loops.

I remained unable to provide here an example using MATLAB because I am confused in it so just attaching a picture to get an idea or overview.

Example code for finding Maximas:

           t = 1:25 ;

           A = [1 0 1 2 3 5 0 1 0 0 0 2 3 6 7 0 0 8 0 1 1 2 3 4 2];

          [pks,locs] = findpeaks(A)

Sorry NO idea about how to clip at maximas I tried but the code is not so mature so i remained unable to provide it here.

Similar questions and discussions