필터 지우기
필터 지우기

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 CenterFile Exchange에서 Computational Geometry에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by