Getting FWHM from distribution fitter

10 ビュー (過去 30 日間)
Brett Ruben
Brett Ruben 2020 年 9 月 26 日
コメント済み: Star Strider 2020 年 10 月 11 日
Hello,
Prefacing with the fact that I am very new to MATLAB. I have 10 distributions of data that look gaussian as they are supposed to. I have created histograms for each set and am set out to calculate the FWHMs - I have looked at some of the answers on here that haven't seemed to help, probably because I don't understand enough. I used the Distribution Fitter App to generate a curve with the "non-parametric' option because the "normal" option seemed to leave out a lot of the peak data. Attached is the photo of that.
1.) What I am hoping to do is calcluate the FWHM from the curve with your help if possible. (Possibly get the equation for the line and use that to find the FWHM?)
2.)If someone thinks there is a better solution to calculating the FWHM more appropriately for my data, please feel free to neglect the first request.
Some background since the question has been asked:
I used TOPAS (Tool for Particle Simulation) softward to get x and y data of protons that hit a "PhaseSpace", basically like holding a sheet of paper a few inches away from a small flashlight, where the photons are playing the role of protons for me, and I get the x and y locations of each particle. This makes a spot on my phasespace and the size of that spot changes with energy, called the spotprofile. As expected, more particles should be recorded near the center, and lessen as you move away from the center, creating a Gaussian distribution. I am looking to calculate the FWHM of each spot's distribution.

採用された回答

Star Strider
Star Strider 2020 年 9 月 27 日
One way to get the FWHM is to use the findpeaks function. It may be ‘overkill’ for only one peak, however it should give you the result you want.
  11 件のコメント
Brett Ruben
Brett Ruben 2020 年 10 月 11 日
I actually tried a method you posted before, but it doesn't quite work the way I want it to. I appreciate any help you can offer!
Best,
Brett
Star Strider
Star Strider 2020 年 10 月 11 日
Thank you for bringing it to my attention.
I posted an Answer to it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by