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
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
43441 Solvers
-
6575 Solvers
-
66 Solvers
-
Back to basics 9 - Indexed References
427 Solvers
-
Rotate and display numbered tile
293 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!