MATLAB: Hi,how to convert 6×6 cell into 1×36 cell in matlab

digital image processing

(i.e) i need answer all cells in single row

Best Answer

k = cell(6,6) ;
for i = 1:6
for j = 1:6
k{i,j} = rand(3) ;
end
end
iwant = reshape(k,1,[]);
or
iwant = k(:)' ;
doc reshape.