필터 지우기
필터 지우기

how to label figure with vertex point in matlab

조회 수: 5 (최근 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 CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by