k-Wave Toolbox Previous   Next

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 structure returned by makeGrid

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

fft, ifft, fft2, ifft2, fftn, ifftn, makeGrid


© 2009-2014 Bradley Treeby and Ben Cox.