k-Wave Toolbox |
Return a frequency domain windowing function
win = getWin(N, type) win = getWin(N, type, ...) [win, cg] = getWin(N, type) [win, cg] = getWin(N, type, ...)
getWin
returns a 1D, 2D, or 3D frequency domain window of the specified type of the given dimensions. By default, higher dimensional windows are created using the outer product. The windows can alternatively be created using rotation by setting the optional input 'Rotation'
to true
. The coherent gain of the window can also be returned. Several examples are given below.
getWin(32, 'Hanning', 'Plot', true);
getWin(32, 'Hanning', 'Plot', true, 'Symmetric', false);
getWin([32, 32], 'Gaussian', 'Plot', true);
getWin([30, 40], 'Gaussian', 'Plot', true, 'Rotation', true);
|
number of samples, use
|
|
window type. Supported values are
|
Optional 'string', value pairs that may be used to modify the default computational settings.
Input | Valid Settings | Default | Description |
---|---|---|---|
|
(boolean scalar) |
|
Boolean controlling whether the window is displayed. |
|
(numeric scalar) |
|
Control parameter for the Blackman, Gaussian, Kaiser, and Tukey windows. |
|
(boolean scalar) |
|
Boolean controlling whether 2D and 3D windows are created via rotation or the outer product. Windows created via rotation will have edge values outside the window radius set to zero. |
|
(boolean scalar) |
|
Boolean controlling whether the window is symmetrical. If set to false, a window of length N + 1 is created and the first N points are returned. |
|
(boolean scalar) |
|
Boolean controlling whether the window is forced to be square. If set to true and Nx and Nz are not equal, the window is created using the smaller variable, and then padded with zeros. |
|
window |
|
coherent gain of the window |
getSpacedPoints | gradientFD |
© 2009-2014 Bradley Treeby and Ben Cox.