Searching the location of a specific cell in a cell array

4 次查看(过去 30 天)
Hello community! I have a cell array (1x1000) like this {[1 2], [3 5], [4,2],..., [2 5]} I found the most commonly occurring cell in this, but now I want to find the positions of this cell. Example what is the position of cell [2 5]? and the answer I want to be the (1, 100) (1,205) (1,276) etc
Please help, if anyone knows.

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-5-8
编辑:Azzi Abdelmalek 2013-5-8
v={[1 2], [3 5], [4,2],[3 5] ,[4 2]}
w=cell2mat(v')
idx=find(ismember(w,[4,2],'rows'))
  3 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by