how to label figure with vertex point in matlab

18 ビュー (過去 30 日間)
Rashi Mehrotra
Rashi Mehrotra 2021 年 12 月 16 日
回答済み: KSSV 2021 年 12 月 16 日
I have a ploygon with four vertex points , how can I label those vertex point as 'A','B','C','D'.

採用された回答

KSSV
KSSV 2021 年 12 月 16 日
A = rand(1,2) ;
B = rand(1,2) ;
C = rand(1,2) ;
P = [A;B;C;A] ;
label = {'A'; 'B' ; 'C'} ;
plot(P(:,1),P(:,2),'.-r')
text(P(1:3,1),P(1:3,2),label)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConstruction についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by