Skip to content

surface interpolating 3d

2 messages · calpeda, Kingsford Jones

#
Hi all,

When you want to draw a surface with a mathematics program you need of two
vectors x and y and a matrix z. Then you plot the surface.
For example:
x=[1 2 3];
y=[5 6 7];
z=[1 2 3
  4 5 6
  7 8 9];

For my applications I have a 3 vectors x, y, z, that are the coordinates x,
y, and z of points in the space. I would find the surface that interpolate
this point. How can I do?
For example:
x=[1 2 3];
y=[5 6 7];
z=[6 9 8];

Thank you very much
#
There are a variety of interplation tools to choose from (kriging,
splines, inverse-distance-weighting, ...), and a variety of ways to do
each of these in R.

For example, have a look at the help page and examples for krige in
package gstat, krige.conv in geoR, or Krig in package fields.


hth,
Kingsford Jones
On Thu, Apr 23, 2009 at 7:15 AM, calpeda <mauro.biasolo at calpeda.it> wrote: