MATLAB: Replacing zeros with empty values matriceszeros Is it possible for matrices in matlab to replace zeros by empty values i.e. not even give a zero but have blank entries? Best Answer 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 SolutionsMATLAB: Empty Matrix c = isempty(a) || isempty(b) || a>b MATLAB: Manipulation of a cell array- Cell_array = {1,[],magic(2);'stirng',[],[]}cellfun('isempty',Cell_array) Related QuestionCreating an empty cellHow to count the number of empty cells in an arrayExtract Imadjust valuesAssigning an empty numeric value to a cell arrayHow cdsc values
Best Answer