Finding peaks - MATLAB Cody - MATLAB Central

Problem 1366. Finding peaks

Difficulty:Rate

Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; peaks = [12 7 3 19];

Hint: Plot x to visually analyse the signal and get the idea of finding the peak. Another hint : first derivative

Solution Stats

49.54% Correct | 50.46% Incorrect
Last Solution submitted on Mar 11, 2025

Problem Comments

Solution Comments

Show comments

Group

Matrix Manipulation I Image
Matrix Manipulation I
  • 16 Problems
  • 98 Finishers

Problem Recent Solvers422

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page