How do i insert the area of each shape in the centre of it?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Yashlin Naidoo
il 19 Mag 2015
Modificato: Yashlin Naidoo
il 30 Mag 2015
This is my code below :
0 Commenti
Risposta accettata
Image Analyst
il 19 Mag 2015
Use sprintf() to create a string with the area in it. Then use text() to place it in the axes
caption = sprintf('Area = %.1f', area);
text(x, y, caption);
Of course you need to figure out what x and y are to position the string in the best looking spot.
8 Commenti
Image Analyst
il 25 Mag 2015
Not sure what you mean. To get every triangle, or just any triangle in general, you have to make the x and y have the coordinates of the three vertices. But I'm sure you know that already , so I'm not really sure what the question is.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!