.php xmlns="http://www.w3.org/1999/.php"> - k-Wave MATLAB Toolbox
k-Wave Toolbox

smooth

Smooth a matrix.

Syntax

mat_sm = smooth(mat)
mat_sm = smooth(mat, restore_max)
mat_sm = smooth(mat, [], window_type)
mat_sm = smooth(mat, restore_max, window_type)

Description

smooth filters an input matrix using an n-dimensional frequency domain window created using getWin. If no window type is specified, a Blackman window is used.

Inputs

mat spatial distribution to smooth

Optional Inputs

restore_max Boolean controlling whether the maximum value is restored after smoothing (default = false)
window_type shape of the smoothing window; any valid inputs to getWin are supported (default = 'Blackman')

Outputs

mat_sm smoothed spatial distribution

Examples

See Also

kWaveGrid
<.php>