Transfer Geometry to a matrix

1 回表示 (過去 30 日間)
Aswas
Aswas 2016 年 5 月 13 日
編集済み: Aswas 2016 年 5 月 13 日
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 日
[r, c] = find(X == 0);
coords = [r, c];
  1 件のコメント
Aswas
Aswas 2016 年 5 月 13 日
編集済み: Aswas 2016 年 5 月 13 日
Walter,
Thanks, all sweet.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePolar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by