Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

creating grided matrix from lat lon and aod data

1 Ansicht (letzte 30 Tage)
SOURANGSU
SOURANGSU am 3 Jun. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Say I have a matrix containing lat lon and AOD value A= 23.34232 67.43123 0.42 23.34562 67.42321 0.73 23.35813 67.44321 0.64 23.12213 67.12888 0.46 etc etc the matrix contains about 5000 rows I need to create a 0.0272x0.0272 grided matrix of this file please help.

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 3 Jun. 2014
F = scatteredInterpolant(A(:,1:2),A(:,3),'natural');
m = min(A(:,1:2));
n = max(A(:,1:2));
[x,y] = ndgrid(m(1):.0272:n(1),m(2):.0272:n(2));
out = F(x,y);
mesh(x,y,out);
hold on
plot3(A(:,1),A(:,2),A(:,3),'o');

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by