k-Wave Toolbox |

# 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

- 2D FFT Reconstruction For A Line Sensor
- 3D FFT Reconstruction For A Planar Sensor
- 2D Time Reversal Reconstruction For A Line Sensor
- 2D Time Reversal Reconstruction For A Circular Sensor
- 3D Time Reversal Reconstruction For A Planar Sensor
- 3D Time Reversal Reconstruction For A Spherical Sensor
- Filtering A Delta Function Input Signal

## See Also

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

© 2009, 2010 Bradley Treeby and Ben Cox.