Min and local max of a curve

조회 수: 2 (최근 30일)
chess
chess 2014년 8월 10일
편집: chess 2014년 8월 10일
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?
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2014년 8월 10일
Can you attach the file of your data?

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

채택된 답변

Image Analyst
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?
  댓글 수: 1
chess
chess 2014년 8월 10일
편집: chess 2014년 8월 10일
I got this curve from histogram of an image then I smooth it.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by