how to label figure with vertex point in matlab
8 次查看(过去 30 天)
显示 更早的评论
I have a ploygon with four vertex points , how can I label those vertex point as 'A','B','C','D'.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!