Effacer les filtres
Effacer les filtres

how to label figure with vertex point in matlab

5 vues (au cours des 30 derniers jours)
Rashi Mehrotra
Rashi Mehrotra le 16 Déc 2021
Réponse apportée : KSSV le 16 Déc 2021
I have a ploygon with four vertex points , how can I label those vertex point as 'A','B','C','D'.

Réponse acceptée

KSSV
KSSV le 16 Déc 2021
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)

Plus de réponses (0)

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by