MATLAB Answers

How can I get X and Y column Matrices from plotted data?

2 views (last 30 days)
Michael Darrow
Michael Darrow on 30 Jun 2015
Edited: Sid on 30 Jun 2015
I have a circular-ish polygon of data points and would like to get these points into X and Y column matrices to do more work on like running the convex hull function.
Thanks
  2 Comments
Michael Darrow
Michael Darrow on 30 Jun 2015
Here is an image of the data. It is a plot of 480x640 logical. I cannot provide the specific code as it requires many files to understand. It is a manipulated image file though.

Sign in to comment.

Answers (2)


Sid
Sid on 30 Jun 2015
Edited: Sid on 30 Jun 2015
Perhaps check out bwboundaries example? (click here .)
Looks like there are a couple of different blobs, so I am not sure if you want to identify each one separately. If so, it might be useful to check out bwlabel (click here .)
HTH.

Community Treasure Hunt

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

Start Hunting!