MATLAB: How to remove empty arrays of cell cell arraysempty arrays please find attached file, how can I remove empty row of cell arrays. Thanks in advance, Best Answer Run thisidx = cellfun(@(x) isempty(x), time);time(idx) = []; Related SolutionsMATLAB: Delete empty [] {1×7 cell} {1×2 cell} z(cellfun('isempty',z))=[] MATLAB: How to filter out a row in a cell array You can do this with cellfun function, like:% 83x10 sample cell arrayC = num2cell(rand(83,10));% Set some empty cellC(2,3) = {''};C(5,2) = {''};% Identify empty cellsidx = cellfun(@isempty, C);% Delete rows with empty cellC(any(idx,2),:) = []; Related QuestionCombine a cell array of cell arrays to a single cell arrayGetting rid of empty cells in a cell arrayManipulation of a cell array-Fill empty spaces in a cell array
Best Answer