Getting FWHM from distribution fitter
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Brett Ruben
il 26 Set 2020
Commentato: Star Strider
il 11 Ott 2020
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.
0 Commenti
Risposta accettata
Star Strider
il 27 Set 2020
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 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!