relative peak height - background
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (1 件)
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.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!