Problem 1366. Finding peaks
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
Problem Comments
-
2 Comments
goc3
on 18 Nov 2016
The test suite has been expanded.
Anastasios
on 31 Jan 2024
step1 watch one piece
Solution Comments
Show commentsProblem Recent Solvers418
Suggested Problems
-
Swap the first and last columns
20902 Solvers
-
3380 Solvers
-
Number of 1s in a binary string
9526 Solvers
-
Split a string into chunks of specified length
1869 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1189 Solvers
More from this Author9
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!