Call adjacent element in row

2 visualizaciones (últimos 30 días)
Tanmoy
Tanmoy el 12 de Jun. de 2015
Comentada: Tanmoy el 12 de Jun. de 2015
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Jun. de 2015
YourData(YourData(:,2)==12,1)

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by