Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
search a particular data in a array and return the index of the array that is found
조회 수: 1 (최근 30일)
이전 댓글 표시
my problem is same
if have array which only two columns
X Y
10.2 12.3
21.443 81.31
32.23 43.32 so on
than how to get index value after find the data
suppose i have X value 21.443 and Y value 81.31
how to get the index value 2
댓글 수: 0
답변 (1개)
Guillaume
2015년 4월 13일
This looks like a duplicate of your other question, this time possibly better explained. The answer is similar, use comparison and logical operations, together with find:
nodes = [10.2 12.3
21.443 81.31
32.23 43.31];
x = 21.443;
y = 43.32;
noderow = find(nodes(:, 2) == x & nodes(:, 3) == y)
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!