how to search for cell in cell array?

if i have these two cell arrays .in cell array cluster points for example in the first column i have point 1 ,3 and 4 . so i want to loop over them to find in hops cell array the index of the row which contain 1 in 1st column and 3 in 2nd column which is index 3, then find the index of the row which contain 1 in 1st column and 4 in 2nd column which is index ,then find the index of the row which contain 3 in 1st column and 3 in 2nd column which is index 14, so i can input anything in hops{index,3}

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 10일

0 개 추천

Try the ismember() function.

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2014년 5월 10일

편집:

2014년 5월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by