Help/ advice on using bicubic () or interp2()

Ben Abbott bpabbott at mac.com
Wed Aug 13 19:56:16 CDT 2008


On Aug 12, 2008, at 10:41 PM, Prof M. N. Anandaram wrote:

> Hello all:
>  When I run the following script on the data given after it,
> %=======================================
> Xt = zeros(10,8);
> for id = 1 : 8,  Xt(1:10, id) = tabtm(1:10, 1); endfor    % here  
> tabtm(10,1) becomes Xt(10,8)
> disp(size(Xt))
> disp(size(CSext));
> CSi = bicubic(tabtm, tabdm, CSext, 6.89, 0.555);
> disp(CSi)
> %=========================================

It appears that "Xt" is superfluous, and tabtm is not the same size as  
tabdm or CSext.

... I've always used meshgrid or ndgrid to prepare inputs for interp2  
or similar functions.

A question for someone else is; Should the columns for "x" and the  
rows for "y" be identical for cubic(x,y,z,xi,yi) and/or for interp2?

Ben


More information about the Help-octave mailing list