Take for exapmle cell array A {1x100}. Each cell in A is an image Mx5000. e.g. A{1,1} is 420x5000, A{1,2} is 400x5000,.... A{1,100} is 700x5000.
when I concatenate all the cells vertically, I get a Nx5000 MATRIX B. After doing an operetion, the 5000 is reduced to 20. So, I have images Mx20
Now, how can I re-concatenate the new Nx20 MATRIX B into cell arrays of size initial cell arrays e.g. B{1,1} is 420x20, B{1,2} is 400x20,... B{1,100} is 700x20