MATLAB: Delete rows from Cell Array cell arraydelete rowsindex I have a cell array as seen in the image. I want to delete the rows of the cell array where the first column is less than 3. Thanks. Best Answer mask = cell2mat(YourCell(:,1)) < 3;YourCell(mask, :) = []; Related SolutionsMATLAB: Remove columns for a cell array One way>> cac = cell(10,3000);>> cac = cac(:,1:end-1000);>> size(cac)ans = 10 2000>>and anothercac = cell(10,3000);cac(:,2001:end) = [];whos cac Name Size Bytes Class Attributes cac 10x2000 160000 cell MATLAB: Delete rows and columns with zeros in a multi level cell array matrix. fun = @(in)in(~cellfun(@(x)[strcmp(x,'0')||isempty(x)] , in));result = cellfun(fun, datafi2 , 'UniformOutput', false); Related QuestionSum of cell array LineMatch values of cells to numbersAdd blank spaces in cell array
Best Answer