MATLAB: How to remove the rows with particular value in a cell cellcell arraysremove rowsrows A = { a 99 8.5; b 2.4 9.7; c 12 99; d 13 11; e 1 1; f 0 1} I would like to remove the rows with 0 and 99. i.e Row 1, Row 3 and Row 6 Best Answer a = 'unknown', b = [], c = 1, d= 1:10, e ={'cell_in_cell'}, f.x = 'struct' A = { a 99 8.5; b 2.4 9.7; c 12 99; d 13 11; e 1 1; f 0 1}B = A(~any(cellfun(@(x) isequal(x,0) || isequal(x,99),A,'un',1),2),:) Related SolutionsMATLAB: Remove row in cell array depending on value of first column. result = cellfun(@(z) z(z(:,1)>=6,:) , C ,'uni',0) MATLAB: How to delete rows from a CELL with certain values Similar question, similar answer ...http://uk.mathworks.com/matlabcentral/answers/288229-how-to-remove-the-rows-with-particular-value-in-a-cellYou should be able to modify the code from that one!If you do not understand it, just ask for some more explanation... Related QuestionFinding cell array elementsHow to concatenate 2 cell arraysFind unique rows of cell arrayFind the index of zero in cell and put it as emptySum of doubles into cell arraysCell2mat of specific coulmns
Best Answer