Transfer Geometry to a matrix

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.

 Risposta accettata

[r, c] = find(X == 0);
coords = [r, c];

1 Commento

Aswas
Aswas il 13 Mag 2016
Modificato: Aswas il 13 Mag 2016
Walter,
Thanks, all sweet.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Computational Geometry in Centro assistenza e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by