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.

 採用された回答

Walter Roberson
Walter Roberson 2016 年 5 月 13 日

0 投票

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

1 件のコメント

Aswas
Aswas 2016 年 5 月 13 日
編集済み: Aswas 2016 年 5 月 13 日
Walter,
Thanks, all sweet.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComputational Geometry についてさらに検索

タグ

質問済み:

2016 年 5 月 13 日

編集済み:

2016 年 5 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by