Azzera filtri
Azzera filtri

Transfer Geometry to a matrix

1 visualizzazione (ultimi 30 giorni)
Aswas
Aswas il 13 Mag 2016
Modificato: Aswas il 13 Mag 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.

Risposta accettata

Walter Roberson
Walter Roberson il 13 Mag 2016
[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 Help Center 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