how to label figure with vertex point in matlab
조회 수: 7 (최근 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!