0

I have a tabulated dataenter image description here

which I like to use bi-linear interpolation between data (orange highlight in image) in MATLAB. I don't know how to use interp1 or interp2.

if i assume that the blue row is x, and the blue column is y and the data between is k(x,y). so I have three vector and I am going to expand vector x and later vector y as well, to interpolate data.

would you please help me?

I'd appreciate any help and comment.

user1331843
  • 123
  • 1
  • 6
  • 15

1 Answers1

0

Try griddata or Delaulay triangulization methods, such as TriScatteredInterp

chaohuang
  • 3,965
  • 4
  • 27
  • 35
  • could you give me a simple example to try griddata? – user1331843 Sep 06 '12 at 11:31
  • There are examples in the link I gave. Also a simple google search will give you much more, like [this one](http://damp.coas.oregonstate.edu/matlab_gridding/) – chaohuang Sep 06 '12 at 13:35
  • about `griddata`, we know that the format of command is `vq`=`griddata`(x,y,v, xq,yq), I don't know how to define `xq`, `yq` ! I saw that we should use [xq,yq]=`meshgrid`(???), but how we will define inside! I'd appreciate your help – user1331843 Sep 26 '12 at 15:10