MATLAB: Delete empty cells from cell array cell arrays how to delete the empty cells and get back 4×4 matrix i tried out = ca(~cellfun('isempty', ca)); but i'm getting output as vector. I need it as matrix format Best Answer reshape(out,4,[]) Related SolutionsMATLAB: Manipulation of a cell array- Cell_array = {1,[],magic(2);'stirng',[],[]}cellfun('isempty',Cell_array) MATLAB: Delete empty cell array A = A(~any(cellfun('isempty', A), 2), :); Related QuestionDelete empty [] {1×7 cell} {1×2 cell}Delete empty rows from Cell arrayConvert an 18×1 cell array in a 3×6 cell array
Best Answer