help-octave
[Top][All Lists]
Advanced

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

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


From: Prof M. N. Anandaram
Subject: Help/ advice on using bicubic () or interp2()
Date: Tue, 12 Aug 2008 19:41:17 -0700 (PDT)

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)
%=========================================
 tabtm=       and       tabdm = 
(10,1)                     size (10,8)

  [9.00 ;             [ 3.000        4.000        5.000        6.000         
7.000        8.000        9.000       10.000
  8.70 ;                2.000        3.000        4.000        5.000         
6.000        7.000        8.000        9.000
  8.30 ;                1.000        2.000        3.000        4.000         
5.000        6.000        7.000        8.000
  8.00 ;                0.000        1.000        2.000        3.000         
4.000        5.000        6.000        7.000
  7.70 ;               -1.000        0.000        1.000        2.000         
3.000        4.000        5.000        6.000
  7.30 ;               -2.000       -1.000        0.000        1.000         
2.000        3.000        4.000        5.000
  7.00 ;               -3.000       -2.000       -1.000        0.000         
1.000        2.000        3.000        4.000
  6.70 ;               -4.000       -3.000       -2.000       -1.000         
0.000        1.000        2.000        3.000
  6.30 ;               -5.000       -4.000       -3.000       -2.000        
-1.000        0.000        1.000        2.000
  6.00 ]               -6.000       -5.000       -4.000       -3.000        
-2.000       -1.000        0.000        1.000]

 CSext  =  size (10,8):
[ -1.17457388  -1.17457388  -1.17198494  -1.15801520   -1.12378216  -0.92445304 
  0.02530587   4.63848926
  -1.01144104  -1.01099538  -1.00788851  -0.98716278   -0.92081875  -0.77989191 
  0.01703334   2.31806333
  -0.86012091  -0.85698520  -0.85078089  -0.81247928   -0.67985371  -0.44733178 
  0.18184359   2.04139269
  -0.78781240  -0.78515615  -0.77728353  -0.73048706   -0.57186521  -0.24641694 
  0.17897695   1.51851394
  -0.74472749  -0.74232143  -0.73048706  -0.67778071   -0.49349497  -0.08460016 
  0.41329976   1.17026172
  -0.71669877  -0.70996539  -0.68193667  -0.57348874   -0.29756946   0.28555731 
  0.96047078   1.49831055
  -0.70553377  -0.69680394  -0.65169514  -0.49349497   -0.14569396   0.37657696 
  1.20682588   1.79795964
  -0.69897000  -0.67985371  -0.58838029  -0.31605287    0.19033170   0.79726754 
  1.29446623   2.15836249
  -0.68193667  -0.56543110  -0.14630179   0.61489722    1.47421626   2.14301480 
  2.45636603   2.55750720
  -0.64206515  -0.50584541  -0.15119530   0.66181269    1.71767050   2.74741181 
  3.33645973   3.44715803]

Output of Octave3.0.1 is the following(in WinXP SciTE window):
   10    8
   10    8
error: X, Y and Z must be martrices of same size
error: evaluating if command near line 73, column 5
error: evaluating if command near line 51, column 3
error: called from `bicubic' in file 
`H:\Octave\share\octave\3.0.1\m\general\bicubic.m'
error: evaluating assignment expression near line 1032, column 5
error: near line 1032 of file `rdcs1970.m'
>Exit code: 1

I tried interp2() also . Similar response follows. 
Can you tell me what I should do or be doing?
Anandaram


      



reply via email to

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