Using interp2 to interpolate points on a path
Mostra commenti meno recenti
load('ProjectTerrain.mat');
for k=1:500
xxx=[-4.8:k:4.8];
yyy=[4:k:-4.8];
a(k)=interp2(x,y,T,xxx,yyy);
end
I have a dataset of 3D terrain data that gives the elevation at certain points (x,y,T), and am trying to interpolate points on a path 500 steps long but am not sure how to start. The coordinates for the start and end points are in xxx and yyy.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Interpolation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!