relative peak height - background

조회 수: 1 (최근 30일)
Bran
Bran 2014년 2월 18일
댓글: Bran 2014년 2월 18일
I have a spectrum and I am trying to find the relative height of the biggest peak. I was wondering if Matlab had an inbuilt function to do this or if there is a way I can work out the background height and then apply the formula: (hp - hb)/hb
Any help would be greatly appreciated

답변 (1개)

Image Analyst
Image Analyst 2014년 2월 18일
There is a findpeaks() function in the Signal Processing Toolbox. How you define the "base" or background of the peak is not so straightforward, especially in 2 dimensions. I think you're on your own for that. Are your signals 1-D or 2-D? For 2D you can look at watershed() or imhmax() but I'm not entirely happy with those.
  댓글 수: 1
Bran
Bran 2014년 2월 18일
Oh thank you so much for your help. Well my data is just an FFT of acceleration data and so is 1D

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

카테고리

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