geoplotで2点間の線分をfor文を用いずに複数プロットする方法
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
geoplotで2点間の線分をfor文を用いずに複数プロットする方法はありますか?
plotでは複数列の行列を入力することで以下のような出力を、for文無しで得られます。
これをgeoplotでfor文を用いずに実現するには、geoplotのドキュメンテーションにあるように(以下)、変数を複数用意するしかありませんか?
for文を用いると動作が遅いので、その点を解消したいです。
0 Kommentare
Antworten (1)
Ryuhei Funada
am 20 Aug. 2020
下記のようなセル配列を作成して、{:}を使って入力します
latlonCl = {[35.6732 35.7232] [139.7313 139.7813] "g-*" [ 35.7732 35.8232] [ 139.8313 139.8813] "r-*"};
geoplot(latlonCl{:})
例2:parent で指定された Figureを利用したい場合
f = figure;
gx = geoaxes(f);
latlonCl = {gx [35.6732 35.7232] [139.7313 139.7813] "g-*" [ 35.7732 35.8232] [ 139.8313 139.8813] "r-*"};
geoplot(latlonCl{:})
gx.Basemap = "openstreetmap";
ご検討くださいませ。
0 Kommentare
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!