help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Ben Abbott
Subject: Re: Help/ advice on using bicubic () or interp2()
Date: Wed, 13 Aug 2008 20:56:16 -0400


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]