How Do I plot Lat Long Altitude into a 2D countour
Afficher commentaires plus anciens
It doesnt seem to work since I have a negative cordinate
1 commentaire
Bjorn Gustavsson
le 27 Nov 2020
So you edit the question after I've tried to give you a working solution, did the solution work?
Réponses (1)
Bjorn Gustavsson
le 26 Nov 2020
The problem you have is that you have coordinates for contours one level at a time, however since you have multiple closed loops this solution looks silly:
load LATLONALT.dat
levels = unique(LATLONALT(:,3)); % 5 levels...
for iLevels = 1:numel(levels)
plot(LATLONALT(LATLONALT(:,3)==levels(iLevels),1),...
LATLONALT(LATLONALT(:,3)==levels(iLevels),2),'-')
hold on
end
However, if you put in rows with nan inbetween the different closed contour-level-loops this should work.
HTH
Catégories
En savoir plus sur Lengths and Angles dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!