MATLAB: Remove columns for a cell array cell arrays Z= {10x3000} how do i trim away 1000 columns toZ={10x2000} Best Answer 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 Related SolutionsMATLAB: Delete rows from Cell Array mask = cell2mat(YourCell(:,1)) < 3;YourCell(mask, :) = []; MATLAB: Sum of cell array Line % When elements of A are row vectors of the same length% (like the example in the question)s = sum(cell2mat(A{4}.'),1);% When elements of A are column vectors of the same lengths = sum(cell2mat(A{4}),2); Related QuestionDelete rows and columns with zeros in a multi level cell array matrix.How do you create a matrix of matricesHow to combine cells in cell array
Best Answer