Call adjacent element in row

1 回表示 (過去 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