width = fwhm(x,y)
Full-Width at Half-Maximum (FWHM) of the waveform y(x) and its polarity.
The FWHM result in 'width' will be in units of 'x'
The code was developed by an unknown author.
Patrick Egan (2023). fwhm (https://www.mathworks.com/matlabcentral/fileexchange/10590-fwhm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
No need to reassign variables 'x' and 'y'.
Remove last 'else' condition.