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.

 Réponse acceptée

Walter Roberson
Walter Roberson le 13 Mai 2016

0 votes

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

1 commentaire

Aswas
Aswas le 13 Mai 2016
Modifié(e) : Aswas le 13 Mai 2016
Walter,
Thanks, all sweet.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Particle & Nuclear Physics dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by