how to separate points into two vectors from structure
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
VANDANA GUPTA
am 26 Apr. 2019
Kommentiert: VANDANA GUPTA
am 30 Apr. 2019
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 Kommentar
Akzeptierte Antwort
Walter Roberson
am 28 Apr. 2019
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);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!