[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2d-interpolate between scattered values
From: |
Helios de Rosario |
Subject: |
Re: 2d-interpolate between scattered values |
Date: |
Thu, 20 Jun 2013 17:03:39 +0200 |
You may want use this:
http://www.gnu.org/software/octave/doc/interpreter/Interpolation-on-Scattered-Data.html
http://www.gnu.org/software/octave/doc/interpreter/Multi_002ddimensional-Interpolation.html
Helios
--
Helios de Rosario Martínez
Researcher
>>> El día 20/06/2013 a las 12:51, Caroline Lindberg
<address@hidden> escribió:
> 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
INSTITUTO DE BIOMECÁNICA DE VALENCIA
Universidad Politécnica de Valencia • Edificio 9C
Camino de Vera s/n • 46022 VALENCIA (ESPAÑA)
Tel. +34 96 387 91 60 • Fax +34 96 387 91 69
www.ibv.org
Antes de imprimir este e-mail piense bien si es necesario hacerlo.
En cumplimiento de la Ley Orgánica 15/1999 reguladora de la Protección
de Datos de Carácter Personal, le informamos de que el presente mensaje
contiene información confidencial, siendo para uso exclusivo del
destinatario arriba indicado. En caso de no ser usted el destinatario
del mismo le informamos que su recepción no le autoriza a su divulgación
o reproducción por cualquier medio, debiendo destruirlo de inmediato,
rogándole lo notifique al remitente.