A={[45;101],[2;7],[5;8],0,0};A(cell2mat(A)==0)={[]}; % I want to find zero and put in empty
A should be
A={[45;101],[2;7],[5;8],[],[]};
find the index of zero in cell and put it as empty
A={[45;101],[2;7],[5;8],0,0};A(cell2mat(A)==0)={[]}; % I want to find zero and put in empty
A={[45;101],[2;7],[5;8],[],[]};
Best Answer