Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Michael Darrow
Michael Darrow el 30 de Jun. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentarios
the cyclist
the cyclist el 30 de Jun. de 2015
"circular-ish polygon of data points" doesn't adequately describe the way the data are currently stored. Can you give an example (ideally using MATLAB code, not just a description) of the data you have, and how you want the output to look?
Michael Darrow
Michael Darrow el 30 de Jun. de 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.

Respuestas (2)

Thorsten
Thorsten el 30 de Jun. de 2015
[i j] = ind2sub(size(I), find(I == 0));

Sid
Sid el 30 de Jun. de 2015
Editada: Sid el 30 de Jun. de 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!

Translated by