Hello everyone,
I am trying to find the values greater than '0' in a cell array of few empty cells eg. D = {[],[],[3],[],[],[]}?
I have tried multiple options like
- find(D{:}>=0)
- [row,col] = cellfun(@(c) find(c >= 0), D, 'uniform', false)
- for i = 1 : length(Match), idx(i) = find(Match{1,i}>=0);end
- ismember(D,3);
But nothing has worked so far?
All the best,
Thanks
Best Answer