help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scatteredInterpolant


From: Carlo De Falco
Subject: Re: scatteredInterpolant
Date: Thu, 21 Jan 2016 14:18:41 +0000

On 21 Jan 2016, at 13:50, Michael Rembe, RC <address@hidden> wrote:

>  
> Hi,
>  
> in the past I used MATLAB with the command scatteredInterpolant to 
> interpolate concentrations from one point cloud (x,y,z,c) to another point 
> cloud (x1,y1,z1,->c1).
>  
> Now I’m using OCTAVE and it seemes, that there insn’t the 
> functionscatteredInterpolant. Is there any work around?
>  
> Thanks! best regards, Michael
>  
> **** MATLAB Code **************

...

> %% Interpolation scatteredInterpolant
> F=scatteredInterpolant(lhkw(:,1),lhkw(:,2),lhkw(:,3),lhkw(:,4),'linear','none');
> feflow(:,7)=F(feflow(:,2),feflow(:,3),feflow(:,4));
> **********************************

Hi,

If I am not mistaken, you should get the same results as in Matlab
by replacing the last two lines in your code by

feflow(:,7) = griddatan (lhkw(:,1:3), lhkw(:,4), feflow(:,2:4), 'linear');

This syntax should also work in Matlab if you need to keep your code portable.

HTH,
c.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]