Hi,
I have some problems finding a solution to a problem.
I have three vectors, describing positions in x and y as well as the height z. z are isocurves for equal height, I have five of them (600, 800, 1000, 1200 and 1300)
The positions (x,y) do not form a grid, but are scattered over the area [xmin xmax ymin ymax].
My data is:
x=[-0.22 0.12 0.62 -0.38 0.20 0.55 -0.76 -0.15 -0.03 0.05 0.17 0.48 -0.96 -0.62 -0.25 -0.04 0.23 -0.88 -0.43 -0.30];
y=[0.02 0.32 0.75 0.06 0.52 0.82 0.12 0.48 0.56 0.62 0.70 0.97 0.56 0.57 0.66 0.82 0.98 0.84 0.86 0.88];
z=[600 600 600 800 800 800 1000 1000 1000 1000 1000 1000 1200 1200 1200 1200 1200 1300 1300 1300];
What I would like to do is to know the value of z for a given point (xi,yi). I have figured out that I have a problem not having the data nicely spread over a square grid. I have tried to search for a solution, but cannot find any that seems to fit my problem.
Can you please give me some tips of how to perform a 2d-interpolation?
Thanks in advance,
Caroline Lindberg