Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
Michael Darrow
Michael Darrow 2015 年 6 月 30 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
the cyclist
the cyclist 2015 年 6 月 30 日
"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 2015 年 6 月 30 日
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.

回答 (2 件)

Thorsten
Thorsten 2015 年 6 月 30 日
[i j] = ind2sub(size(I), find(I == 0));

Sid
Sid 2015 年 6 月 30 日
編集済み: Sid 2015 年 6 月 30 日
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