Problem 42688. Determine the full width at half max
Solution Stats
Problem Comments
-
2 Comments
Alfonso Nieto-Castanon
on 23 Nov 2015
@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)
Carl Witthoft
on 24 Nov 2015
Ahh, yes. Sorry, my bad
Solution Comments
-
1 Comment
Carl Witthoft
on 24 Nov 2015
This fails, I believe, for asymmetric peaks. Try y = [0:4 , 3:-1:1,1,1,1,1,1]
-
2 Comments
Jan Orwat
on 21 Nov 2015
Hey Albert, there is abs() missing in the test suite.
Alberto Comin
on 22 Nov 2015
Thanks, Jan. I just fixed it.
Problem Recent Solvers15
Suggested Problems
-
76 Solvers
-
104 Solvers
-
Calculate the height of an object dropped from the sky
204 Solvers
-
194 Solvers
-
Replace secondary diagonal elements of a square array
142 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!