4.7K Downloads
                    
                    
                  
                
                  Updated
                    10 Jun 2005
                  
                
                  No License
A simple rugged script that finds the peaks and troughs of a signal, vector, or data points. The results are returned in two index vectors p and t. 
Notice: Might drop end points or give two point where adjacent data have the same value.
Returns column-wise peak and through index vectors
Cite As
Nagi Hatoum (2025). peaks (https://se.mathworks.com/matlabcentral/fileexchange/7694-peaks), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
              Created with
              R10
            
            
              Compatible with any release
            
          Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Measurements and Feature Extraction > Descriptive Statistics >
 
      Find more on Descriptive Statistics in Help Center and MATLAB Answers
    
  Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | accepts column or row vector.  | 
          
