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
-
Determine whether a vector is monotonically increasing
16650 Solvers
-
61 Solvers
-
461 Solvers
-
188 Solvers
-
Write a function man that takes a row vector v and returns a matrix H as follows..
573 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!