What is the maths behind findpeaks function on matlab?

Antworten (2)

Ameer Hamza
Ameer Hamza am 9 Mai 2020

0 Stimmen

Most of the MATLAB algorithms are proprietary, which means their details and code is not publicly available. You cannot get any more information other than specified on the documentation page. If a publicly available algorithm is used, then it is mentioned in the "Algorithm" and "References" section of the documentation. As you can see, the documentation of findpeaks has neither of these sections, so there is no way to get the details of the algorithm.

3 Kommentare

Matlaber
Matlaber am 9 Mai 2020
Bearbeitet: Steven Lord am 9 Mai 2020
However, the code is available.
I can read the "findpeaks" code in matlab using command
open findpeaks
and the code given below:
[SL: removed the body of the findpeaks function from Signal Processing Toolbox. Please don't post MathWorks functions.]
Yes, the code is indeed available in this case, but it didn't mention the name of any known algorithm. If the code is viewable, then you can use a breakpoint to run it line by line to understand its working.
Thanks, I did read the code line by line, but is very hard to understand. That is why I am posting this question.

Melden Sie sich an, um zu kommentieren.

Honglei Chen
Honglei Chen am 11 Mai 2020

0 Stimmen

There is no specific name for the algorithm. Essentially it looks for points that is larger than the two adjacent points. Is there anything specific you want to know?
HTH

4 Kommentare

Hsein Ping Kew
Hsein Ping Kew am 11 Mai 2020
Bearbeitet: Ameer Hamza am 11 Mai 2020
What is the maths used in this findpeaks function?
It cannot be just only 1 sentences summary the whole function.
[Code of findpeaks() removed.]
What I said is true though, as that's the main idea behind the code. The code certainly needs to consider the case when the peak is at the edge or something liike that, but what I said is the main idea behind the code.
It will be difficult to give an line by line explanation for the entire code, espeically when there are many codes for parsing and plotting, which is irrelevant to the algorithm. Do you have question for any specific code?
Hsein, posting the code of MATLAB function on an online forum is not permitted. Mathworks holds the copyrights for the code. I have removed the code from your comment.
Thanks for both reply and sorry for late reply.
How I can explain this in longer for writing in a thesis?

Melden Sie sich an, um zu kommentieren.

Tags

Gefragt:

am 9 Mai 2020

Kommentiert:

am 11 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by