MATLAB Answers

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

4 views (last 30 days)
Asad AS
Asad AS on 26 Nov 2020
Commented: Bjorn Gustavsson on 27 Nov 2020
It doesnt seem to work since I have a negative cordinate

  1 Comment

Bjorn Gustavsson
Bjorn Gustavsson on 27 Nov 2020
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)

Bjorn Gustavsson
Bjorn Gustavsson on 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)
hold on
However, if you put in rows with nan inbetween the different closed contour-level-loops this should work.


Sign in to comment.


Community Treasure Hunt

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

Start Hunting!

Translated by