MATLAB: How to find non zero cells in a cell array

find non zero cells in an array

Let's say I have a 100×10 cell array of 0 and 1 (false and true). I want to know which cells contain 1's. I would like the information to appear like this: (row number,column numer). Thank you!

Best Answer

Here an axample:
testcell={0,1,1,0,1};
matcell=cell2mat(testcell);
find(matcell==0)