Displaying 3 results from an estimated 3 matches for "interp2".
Did you mean:
interp
2010 Feb 04
2
2 dimensional interpolation from matlab to R
...want to know the bathymetry associated to the second dataset. I thought it was a good idea to do an interpolation between the two datasets. I find a script doing that on matlab but i want to do it on R. Do you how to do it?
for ii = 1:length(seal_dive_depth07)
seal_bathy_depth07(ii) = interp2(long,latg,A,seal_lon07(ii),seal_lat07(ii));
end
Karine HEERAH
Master 2 mention "océanographie et environnements marins", parcours océanique
42 rue Salvador Allende
92000 Nanterre
06.61.50.97.47
_________________________________________________________________
[...
2011 May 04
1
bivariate linear interpolation
Hi,
I have three matrices (X,Y,P) with the same dimension. The X,Y grid is
regular and I want to
perform linear interpolation to pick out certain points. In matlab
appropriate call is
something like
Pout=interp2(X,Y,P,Xout,Yout, method="linear")
where Xout and Yout are the locations where I want the Pout data
(typically a different grid).
(Scipy has this routine in interpolate.interp2d, with similar arguments)
In R there is (as often) the choice between many different
interpolation routines. A...
2008 May 29
1
akima interpolation and triangulation question
...is the code
library(akima)
library(fields)
library(tripack)
soil <- read.table("http://www.unc.edu/~zhuz/teaching/Stat890/Data/soil.txt",header=TRUE)
attach(soil)
soil.interp <- interp(u, v, moist) # linear interpolation works
plot.surface(soil.interp)
# spline interpolation
soil.interp2 <- interp(u, v, moist, linear = F) # spline interpolation
returns only NA's
# triangulation
tri.mesh(soil$u, soil$v) # got error
Thanks