Re: Interpolation[] problem
- To: mathgroup at smc.vnet.net
- Subject: [mg18529] Re: Interpolation[] problem
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 8 Jul 1999 22:33:00 -0400
- Organization: Universitaet Leipzig
- References: <7m14um$pls@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Matheamtica can handel the data on a irregualar but rectangular
spaced grid, here is an example
make some irregular spaced data
data = Table[N[{x^2, y, Sin[x^2*y]}], {x, 0, Pi, Pi/32}, {y, 0, Pi,
Pi/32}];
Here i mus flatten the matrix of 3d points to a list of 3d points
ip = Interpolation[Flatten[data, 1]][x, y]
Now lets look if the points are correct
Show[Graphics3D[Map[Point, data, {2}]]];
and try the interpolation
Plot3D[Evaluate[ip], {x, 0, \[Pi]^2}, {y, 0, \[Pi]}]
Send me the data file to kuska at informatik.uni-leipzig.de
because the moderator has removed it.
Hope that helps
Jens
Attico Nicola wrote:
>
> hi all,
> i've an incomprehensible problem with
> Interpolation[].
> I need to interpolate a two dimensional
> function z(x,y) and i've in a file
> the values of the functions in different
> points in the form:
>
> x_i y_i z_i
>
> (ive copied my file in attchmnt)