Faster interpolation than interp2 ?
Mostra commenti meno recenti
Hey guys, I have a question. I am currently using interp2 for interpolation of single points on a grid. In my case it is
if true
k1u=interp2(lat,lon,u_now_flow,b,a)
end
So lat and lon are the sample grid points (this is how matlab calls it. they get created by meshgrid), u_now_flow is a flow field and b and a are vectors which look like this:
53.9603
53.9603
53.9603
53.9703
53.9703
53.9703
53.9803
53.9803
53.9803
54.0003
so the code is working fine, but I wanted to know if there are faster ways/functions to interpolate the points on a grid. I tried to use griddedInterpolant, but failed cause I always got NaN, but I have no idea why. I hope you can help me
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Interpolation in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
