Problem 42688. Determine the full width at half max
Determine the full width at half max of a curve.
The full width at half maximum (FWHM) is a parameter which is used for describing the width of a peak. https://en.wikipedia.org/wiki/Full_width_at_half_maximum
It is defined as the distance between the two points at which the curve reaches half of its maximum value. For example if y = [0 3 6 3 0], the full width at half of y is 2.
The data in the test-set have only one positive peak. The test suite checks if the solution is correct within an error of 10%. Note that the input array may not necessarily contain an element equal to half of the maximum.
Solution Stats
Problem Comments
-
2 Comments
@Carl: the solutions already work this way, in this example the distance between "the points half-way between y(1) and y(2), and between y(5) and y(6)" is 5.5-1.5 (i.e. four, not five)
Ahh, yes. Sorry, my bad
Solution Comments
Show commentsProblem Recent Solvers18
Suggested Problems
-
Find common elements in matrix rows
2713 Solvers
-
364 Solvers
-
Back to basics 9 - Indexed References
459 Solvers
-
When can one be the Life Member of the IEEE?
74 Solvers
-
How long do each of the stages of the rocket take to burn?
450 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!