Date: Dec 10, 2012 6:41 PM Author: rajkrai@gmail.com Subject: define matrix in griddata function Hi: For example I have a matrix as following,
x = [1.0 1.2 3.0 4.0];
y = [2.0 2.7 4.1 5.0];
M = [1.1 x x x;
x 1.3 2.1 x;
2.2 x x 1.6;
x x 1.5 1.8];
[xi yi]= meshgrid(1:4,2:5);
zi = griddata(x,y,M,xi,yi);
In M, all x are holes (have no value). My question is how can I give value M in griddata function above to interpolate the scattered data into the holes x in M?
I appreciate your help.
-raj