필터 지우기
필터 지우기

How plot line in geographic map with initial coordinates and azimuth?

조회 수: 29 (최근 30일)
Hello!
I would like to know how can I plot a line extending for 3000 km over a geographic map on MATLAB. I have the latitude and longitude of the initial position, together of the back-azimuth to indicate the direction. Then, I need to plot a line starting in that position. I know some commands (e.g.geoplot) which they plot line between two geographical coordinates, but I dont know using bach-azimuth angle.
I will be grateful for any idea.
best,
Guilherme de Melo

채택된 답변

Cris LaPierre
Cris LaPierre 2023년 5월 17일
I think geoplot is the correct function. You just need to calculate the end coordinates. If you have the initial location, arclength, and azimuth, you can use the reckon function (included in the Mapping Toolbox).
  댓글 수: 32
Guilherme Weber Sampaio de Melo
Guilherme Weber Sampaio de Melo 2023년 11월 14일
Hi. It worked well. Thank you. I did not know about the scatter. I was thinking that it would be plotted automatically after define the color order, similar to we have done to the lines on map.
However, there is a "problem?" that after use the scatter function, some vertical lines (e.g. 90-95 of y-axis in 605 x-axis ) provide by xlim are not being plotted. They were working normal after "plot" function.
Cris LaPierre
Cris LaPierre 2023년 11월 14일
If you want to use colororder to set your marker color, see my previous reply. You may also find the description on the Y-input on the plot documenation page helpful.
For your new question, there was no use of xlim in the code you shared. Please provide example code.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by