フィルターのクリア

how to separate points into two vectors from structure

1 回表示 (過去 30 日間)
VANDANA GUPTA
VANDANA GUPTA 2019 年 4 月 26 日
コメント済み: VANDANA GUPTA 2019 年 4 月 30 日
Target Position Index
1x1 Line [76,76] 76
1x1 Line [71,71] 71
1x1 Line [67,67] 67
1x1 Line [63,63] 63
1x1 Line [59,59] 59
1x1 Line [55,55] 55
1x1 Line [49,49] 49
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 26 日
What would the desired output be for that input ?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2019 年 4 月 28 日
P1 = arrayfun(@(S) S.Position(1), YourStructure);
P2 = arrayfun(@(S) S.Position(2), YourStructure);
or
pos = vertcat(YourStructure.Position);
P1 = pos(:,1);
P2 = pos(:,2);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by