Filter löschen
Filter löschen

Transfer Geometry to a matrix

1 Ansicht (letzte 30 Tage)
Aswas
Aswas am 13 Mai 2016
Bearbeitet: Aswas am 13 Mai 2016
Hi, I have a Geometry as : G =
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1
-1 0 0 0 0 0 0 0 0 0
-1 0 0 0 0 0 0 0 0 0
-1 0 0 0 0 0 0 0 0 5,
and I'd like to transfer the 26 x 0 coordinates to a 26x2 matrix (X), please.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Mai 2016
[r, c] = find(X == 0);
coords = [r, c];
  1 Kommentar
Aswas
Aswas am 13 Mai 2016
Bearbeitet: Aswas am 13 Mai 2016
Walter,
Thanks, all sweet.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Computational Geometry finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by