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

It doesnt seem to work since I have a negative cordinate

1 Comment

So you edit the question after I've tried to give you a working solution, did the solution work?

Sign in to comment.

Answers (1)

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

Tags

Asked:

on 26 Nov 2020

Commented:

on 27 Nov 2020

Community Treasure Hunt

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

Start Hunting!