How to display XYZ location for the component

How can I display the location (X, Y) for each component in this figure?

Answers (2)

regionprops() to get the Centroid. Use the centroids as locations to text() a string that identifies the location.

Asked:

NF
on 22 Dec 2015

Answered:

on 23 Dec 2015

Community Treasure Hunt

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

Start Hunting!