Alternative to 'findpeaks'

조회 수: 72 (최근 30일)
Hasan Ghorbani
Hasan Ghorbani 2015년 9월 15일
댓글: Adam 2022년 8월 3일
Hi,
I don't have Signal processing toolbox but I need to have a functionality pretty much like findpeaks in my code where I need to find out the two peak values of my plot. Using max is no good as can be seen in following figure.
Any suggestion?

답변 (3개)

Steven Lord
Steven Lord 2022년 7월 19일
See the islocalmax function that is part of MATLAB.

Will Reeves
Will Reeves 2022년 7월 19일
Did anyone actually look at the results from the FileExchange? Most of submissions call the findpeaks function from within the code. Sometimes people request help for silly things, granted. However, simply providing a "Let Me Google That For You" link isn't really very proffessional or helpful.
I'm a little shocked that "peak finding" is a function exclusive to the "signal processing toolbox". Seems like this is the sort of functionalty that really belongs in the core Matlab product. Having to purchase expensive tool boxes just to use a single function isn't sustainable in the long term and will push users towards open source languages and platforms... like python.
  댓글 수: 1
Adam
Adam 2022년 8월 3일
I don't know if submissions have changed, been deleted or just swamped by newer less relevant ones since my answer in 2015, but I seem to remember I tried at least two submissions from file exchange for my own work prior to that, hence my answer pointing to where those and potentially some others could be found.
I guess like most resources on the internet the passing of time just causes the File Exchange to get ever larger so what was an easy and relevant search 7 years ago may not be quite so simple now!

댓글을 달려면 로그인하십시오.


Adam
Adam 2015년 9월 15일

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by