Min and local max of a curve
1 回表示 (過去 30 日間)
古いコメントを表示
Hi I have a histogram which I want to find its min and max. So lets say the first max happens around 0.1 the local mean is at around 0.3 and second local max is at around 0.8.
I use findpeaks command but my first question is how to find a location on horizontal axis after having the index of maxima or minima? (specially for the minima and second max)?
2-How to find location of minimum because findpeaks only gives maximum location?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154208/image.jpeg)
採用された回答
Image Analyst
2014 年 8 月 10 日
編集済み: Image Analyst
2014 年 8 月 10 日
The usual method is to use findpeaks on the inverted signal, so that what were once valleys (minima) now become peaks.
flippedSignal = max(signal) - signal;
By the way, what does this have to do with image processing?
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!