k-Wave Toolbox Previous   Next

smooth

Smooth a matrix

Syntax

f_sm = smooth(f, kgrid)
f_sm = smooth(f, kgrid, restore_max)

Description

smooth filters an input matrix using an n-dimensional frequency-domain Hanning window.

Inputs

f

matrix to smooth

kgrid

k-space grid structure returned by makeGrid

Optional Inputs

restore_max

Boolean controlling whether the maximum value is restored after smoothing (default = false)

Outputs

f_sm

smoothed matrix

Examples

See Also

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


© 2009, 2010 Bradley Treeby and Ben Cox.