How I can add marker names with plot function?
11 ビュー (過去 30 日間)
古いコメントを表示
station_id={'abcd','brmu','vcfd','mnnn'};
lon = [ 2.3349 12.878 8.6649 13.066 ];
lat = [ 48.835 49.1442 50.0906 52.3792 ];
plot(lon,lat,'.r','MarkerSize',20,'Marker','o', 'MarkerFaceColor', 'blue')
xlabel('Longtitude')
ylabel('Latitude')
title('STATIONS')
I need to add "station_id" for each marker in the plot figure.
0 件のコメント
採用された回答
Azzi Abdelmalek
2016 年 5 月 5 日
編集済み: Azzi Abdelmalek
2016 年 5 月 5 日
for k=1:numel(station_id)
text(lon(k)+0.5,lat(k),station_id{k})
end
0 件のコメント
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!