MATLAB: How can I zero a load of the array values arrayMATLAB how can I zero a load of my array values? Best Answer How aboutmyArray(row1:row2, col1:col2) = 0;? However, that's so obvious that I'm not sure that it is what you were after. Related SolutionsMATLAB: How to remove zero value in the column Your_array_new = Your_array(all(Your_array ~= 0,2),:); MATLAB: Replacing zeros with empty values No. Not unless every row/column has one and you concatenate.It is possible to have empty elements in cell arrays though, consider:A = magic(5); %sampleA(A<10)=0; %some zerosC = cellfun(@(x)x(logical(x)),num2cell(A),'uni',false) %cell with empties where zeros were Related QuestionHow to load Phased Array System Toolbox to the trial MatlabZeros matrixHow to extract a value out of different .mat files and save them into an arrayCounting zeros
Best Answer