k-Wave Toolbox

smooth

Smooth a matrix.

Syntax

mat_sm = smooth(kgrid, mat)
mat_sm = smooth(kgrid, mat, restore_max)
mat_sm = smooth(kgrid, mat, [], window_type)
mat_sm = smooth(kgrid, 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

kgrid k-Wave grid object returned by kWaveGrid
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