How Do I plot Lat Long Altitude into a 2D countour

4 vues (au cours des 30 derniers jours)
Asad AS
Asad AS le 26 Nov 2020
It doesnt seem to work since I have a negative cordinate
  1 commentaire
Bjorn Gustavsson
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?

Connectez-vous pour commenter.

Réponses (1)

Bjorn Gustavsson
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 Coordinate Systems dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by