MATLAB: Do I receive an error when I use the function RESIZEM with the ‘cubic’ or ‘linear’ method in Mapping Toolbox 2.3 (R2006a)

bicubicbilinearcubiclinearMapping Toolboxresizem

I am trying to resize 'peaks' data using the RESIZEM function with the 'cubic' or 'linear' method which performs bicubic and bilinear interpolation respectively. I execute the following commands in MATLAB 7.2 (R2006a) to perform this operation:
mydata=peaks;
a=resizem(mydata,0.5,'linear');
b=resizem(mydata,0.5,'cubic');
The above commands result in the following error messages:
??? Error using ==> resizem>imresize
Unknown interpolation method: linear
Error in ==> resizem at 94
map = imresize(map0,vec,method);%
and
% ERROR:
??? Error using ==> resizem>imresize
Unknown interpolation method: cubic
Error in ==> resizem at 94
map = imresize(map0,vec,method);

Best Answer

The Mapping Toolbox 2.3 (R2006a) documentation for the RESIZEM function contains an error regarding specifying the bilinear or the bicubic method for resizing grid data. The documentation should read as follows:
newgrid = resizem(grid,m,method) specifies the method of interpolation. The string method 'nearest' results in nearest-neighbor interpolation, the default, 'bicubic' results in bicubic interpolation, and 'bilinear' results in bilinear interpolation.