How to use find function in cell array

Hello ,
I have a 306*1 cell array and each cell array has a matrix of 100*2 elements. I want to find in which particular cell arrays I have value less than a specified value.
i was reading the documentation and found I could use predefined function
X = cellfun(@find,C(:,1)<27) but this command gives me an error.
I just want to check the first column ín each cell array for a specified value.

답변 (1개)

Iman Ansari
Iman Ansari 2013년 7월 25일

0 개 추천

C = {100*rand(100,2);100*rand(100,2);100*rand(100,2)};
X = cellfun(@(x) find(x(:,1)<27),C,'Un',0);

댓글 수: 1

Filza Ashraf
Filza Ashraf 2014년 5월 22일
if a cell contains an image how can i apply find command for a cell to find certain intensity pixels

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

카테고리

도움말 센터File Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

질문:

2013년 7월 25일

댓글:

2014년 5월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by