geoplot で描画した地図で、x,y 座標の単位を変更することはできますか?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 16 Jul. 2021
Beantwortet: MathWorks Support Team
am 16 Jul. 2021
geoplot 関数で描画した時、緯度と経度を指定していますが、座標のメモリと単位が一致していないようです。
単位を合わせる方法を教えてください。
latX = 35.7; % 地点 a の緯度
lonX = 139.7; % 地点 a の経度
latY = 35.63; % 地点 b の緯度
lonY = 139.88; % 地点 b の軽度
geoplot([latX, latY],[lonX,lonY],'g-*') % plot
geolimits([35.5,36],[139.5,140]) % 範囲選択
Akzeptierte Antwort
MathWorks Support Team
am 16 Jul. 2021
geoplot で描画された座標はデフォルトの単位は「度、分、小数部を含む秒とコンパス方位」となっています。
以下のように geotickformat 関数を使用して、単位を 「小数部を含む度とコンパス方位」に設定することが可能です。
geotickformat dd % 単位を 度 と方位に設定
geotickformat で指定できる単位についての詳細は以下の URL よりヘルプドキュメントを
ご覧ください。
・geotickformat - fmt
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 地理プロット finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!