How to use find function in cell array

2 visualizaciones (últimos 30 días)
Ricky
Ricky el 25 de Jul. de 2013
Comentada: Filza Ashraf el 22 de Mayo de 2014
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.

Respuestas (1)

Iman Ansari
Iman Ansari el 25 de Jul. de 2013
C = {100*rand(100,2);100*rand(100,2);100*rand(100,2)};
X = cellfun(@(x) find(x(:,1)<27),C,'Un',0);
  1 comentario
Filza Ashraf
Filza Ashraf el 22 de Mayo de 2014
if a cell contains an image how can i apply find command for a cell to find certain intensity pixels

Iniciar sesión para comentar.

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by