What is the maths behind findpeaks function on matlab?
이전 댓글 표시
How can I use maths to explain this matlab function?
findpeaks function
답변 (2개)
Ameer Hamza
2020년 5월 9일
0 개 추천
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
Matlaber
2020년 5월 9일
편집: Steven Lord
2020년 5월 9일
Ameer Hamza
2020년 5월 10일
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.
Matlaber
2020년 5월 10일
Honglei Chen
2020년 5월 11일
0 개 추천
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
Hsein Ping Kew
2020년 5월 11일
편집: Ameer Hamza
2020년 5월 11일
What is the maths used in this findpeaks function?
It cannot be just only 1 sentences summary the whole function.
[Code of findpeaks() removed.]
Honglei Chen
2020년 5월 11일
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?
Ameer Hamza
2020년 5월 11일
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.
Hsein Ping Kew
2020년 5월 11일
Thanks for both reply and sorry for late reply.
How I can explain this in longer for writing in a thesis?
카테고리
도움말 센터 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!