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 Exchange에서 Computational 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