Finding the location of maximum peaks in a plot with MATLAB

前端 未结 2 667
情深已故
情深已故 2020-12-22 12:56

Suppose I have the F matrix like this:

F =
0, 0, 106, 10, 14, 20, 20, 23, 27, 26, 28, 28, 28, 23
       |                        |           |
     peak             


        
2条回答
  •  -上瘾入骨i
    2020-12-22 13:42

    Use the findpeaks function (Signal Processing Toolbox).

    [peakVal,peakLoc]= findpeaks(x);
    

提交回复
热议问题