k-Wave Toolbox |
Compute the full width at half maximum
fwhm_val = fwhm(f, x) fwhm_val = fwhm(f, x, plot_fwhm)
fwhm
calculates the Full Width at Half Maximum (FWHM) of a positive 1D input function f(x) with spacing given by x.
For example, running the code
x = -pi/2:pi/20:pi/2; f = cos(x); fwhm(f, x, true);
produces the output
|
f(x) |
|
x data or dx |
|
Boolean controlling whether a plot of the function and FWHM is produced |
|
FWHM of f(x) |
focus | gaussian |
© 2009-2014 Bradley Treeby and Ben Cox.