Borrar filtros
Borrar filtros

Getting FWHM from distribution fitter

10 visualizaciones (últimos 30 días)
Brett Ruben
Brett Ruben el 26 de Sept. de 2020
Comentada: Star Strider el 11 de Oct. de 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.

Respuesta aceptada

Star Strider
Star Strider el 27 de Sept. de 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 comentarios
Brett Ruben
Brett Ruben el 11 de Oct. de 2020
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 el 11 de Oct. de 2020
Thank you for bringing it to my attention.
I posted an Answer to it.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by