k-Wave Toolbox |
Resize a matrix
mat_rs = resize(mat, new_size) mat_rs = resize(mat, new_size, interp_mode)
Resize
a matrix to a given size using interp1
(1D), interp2
(2D), or interp3
(3D).
|
matrix to resize |
|
desired matrix size in elements given by [N] in 1D (a single number is used for both row and column vectors), [Nx, Ny] in 2D and [Nx, Ny, Nz] in 3D. |
|
interpolation mode used by |
|
resized matrix |
interp1
, interp2
, interp3
reorderSensorData | revolve2D |
© 2009-2014 Bradley Treeby and Ben Cox.