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

30 ビュー (過去 30 日間)
Guilherme de Melo
Guilherme de Melo 2023 年 5 月 17 日
コメント済み: Cris LaPierre 2023 年 11 月 14 日
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 de Melo
Guilherme 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 Center および File ExchangeGeographic Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by