Filter löschen
Filter löschen

How to put labels to each points? And the labels are the value of each points?

1 Ansicht (letzte 30 Tage)
KD
KD am 8 Dez. 2021
Beantwortet: Voss am 8 Dez. 2021
x = [4 9 11 2 4];
y = [10 7 2 2 10];
x(end+1)=x(1);
y(end+1)=y(1);
area=polyarea(x,y);
str=sprintf('Area of the Polygon is : %d', area);
plot(x,y, 'g'), title(str, 'FontSize', 16);

Antworten (1)

Voss
Voss am 8 Dez. 2021
Look into text.

Community Treasure Hunt

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

Start Hunting!

Translated by