geoplotで2点間の線分をfor文を用いずに複数プロットする方法
Afficher commentaires plus anciens
geoplotで2点間の線分をfor文を用いずに複数プロットする方法はありますか?
plotでは複数列の行列を入力することで以下のような出力を、for文無しで得られます。

これをgeoplotでfor文を用いずに実現するには、geoplotのドキュメンテーションにあるように(以下)、変数を複数用意するしかありませんか?

for文を用いると動作が遅いので、その点を解消したいです。
Réponses (1)
Ryuhei Funada
le 20 Août 2020
0 votes
下記のようなセル配列を作成して、{:}を使って入力します
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";
ご検討くださいませ。
Catégories
En savoir plus sur 地理プロット dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!