I have a dataset x, y and z (each of them is a 3000 by 1 matrix), and I would like to interpolate this data to have a set of values for height z with evenly spaced x and y values. I suppose I need to stitch the grid of datasets x and y, but I don't know how to interpolate z data. Data points are unique vertices taken from the STL file, and therefore I want to smooth the resulting surface.
Any help is greatly appreciated
Tom.
you have matlab interp2 function
then your code will be zi = interp2 (x, y, z, xi, yi);
you can create evenly distributed xi and yi using a mesh grid
xi yi x y, , . , xi = 1 2 3 yi = 4 5,
xi : [1 2 3; 1 2 3]
yi, [4 4 4; 5 5 5]
, !