k-Wave Toolbox |

# resize

Resize a matrix using `interp2`

## Syntax

    mat_rs = resize(mat, Nx, Nz)

## Inputs

`mat` | matrix to resize
`Nx` | desired number of pixels in the x (column) direction
`Nz` | desired number of pixels in the z (row) direction

## Optional Inputs

`interp` | interpolation mode used by `interp2` (default = 'linear')

## Outputs

`mat_rs` | resized matrix

## Examples

- Loading External Image Maps
- 2D Time Reversal Reconstruction For A Circular Sensor

## See Also

`interp2`

© 2009, 2010 Bradley Treeby and Ben Cox.