How to adding label for rectangle
Afficher commentaires plus anciens
hello everyone.....
i used the function below for drawing rectangle item, now i want to add number for this item ( like number (1) ),if anyone have idea
thanks :-)
rectangle('Position',[x y Element(i).W Element(i).H],'FaceColor',cl(i,:));

Réponses (1)
Walter Roberson
le 1 Nov 2020
Modifié(e) : Walter Roberson
le 1 Nov 2020
0 votes
You could use text() or annotation() if you need the words to be near the rectangle.
You can use legend() if you want to create a legend. legend() can be used for all graphics objects, not just for plot()
1 commentaire
ahmed noori
le 1 Nov 2020
Catégories
En savoir plus sur Legend dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!