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