TriScatteredInterp doesn't extrapolate outside scattered data points
Ältere Kommentare anzeigen
hello everybody
I wonder why Mathworks considers TriScatteredInterp(x,y,z) as an extrapolation function while it only interpolates inside the area defined by "x,y" scattered points and it doesn't calculate outside that area.
Am I doing something wrong, here is the code:
pos = [ 401.5 387.5 659.5 523.5 349.0 509.5;...
304.0 305.0 405.5 205.0 483.5 229.5];
z1 = rand(1,6);
F1 = TriScatteredInterp(pos(1,:)',pos(2,:)',z1');
gx = 300:5:700;
gy = 200:5:500;
[qx,qy] = meshgrid(gx,gy);
z_1 = F1(qx,qy);

Akzeptierte Antwort
Weitere Antworten (2)
Walter Roberson
am 16 Nov. 2015
1 Stimme
The link you posted refers only to scatteredInterpolant(), not to TriScatteredInterp() . TriScatteredInterp() is still present in MATLAB but the recommendation is to replace it with calls to scatteredInterpolant()
1 Kommentar
Abdelmoumen Bacetti
am 16 Nov. 2015
Bearbeitet: Abdelmoumen Bacetti
am 16 Nov. 2015
Abdelmoumen Bacetti
am 18 Nov. 2015
0 Stimmen
Kategorien
Mehr zu Bounding Regions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!