k-Wave Toolbox |
![]() ![]() |
Resize a matrix using interp2
(2D) or interp3
(3D).
mat_rs = resize(mat, new_size) mat_rs = resize(mat, new_size, interp_mode)
|
matrix to resize |
|
desired matrix size in pixels given by [Nz, Nx] in 2D and [Nz, Nx, Ny] in 3D. Here Nz is the number of pixels in the row direction, Nx is the number of pixels in the column direction, and Ny is the number of pixels in the depth direction. |
|
interpolation mode used by |
|
resized matrix |
interp2
, interp3
![]() |
powerLawKramersKronig | saveTiffStack | ![]() |
© 2009, 2010 Bradley Treeby and Ben Cox.