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

0 Stimmen

[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 Hilfe-Center und File Exchange

Tags

Gefragt:

am 13 Mai 2016

Bearbeitet:

am 13 Mai 2016

Community Treasure Hunt

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

Start Hunting!

Translated by