Call adjacent element in row

조회 수: 2 (최근 30일)
Tanmoy
Tanmoy 2015년 6월 12일
댓글: Tanmoy 2015년 6월 12일
For element 12 in 2nd column, I need to know the corresponding element (neighbor/ adjacent) in column 1 (1,2,3 in column 1 is adjacent to 12). I tried INTERSECT which gives me row number where they intersect. From that information, I need to search element in 1st column. Is there any direct way to do this? Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2015년 6월 12일
YourData(YourData(:,2)==12,1)
  댓글 수: 1
Tanmoy
Tanmoy 2015년 6월 12일
thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by