The result of code below is 0 for all elements in each matrix, why?
for i=1:512 for ii=1:64 for iii=1:8 img{i} = cell_img{ii}(:,:,iii); end endend
Where cell_image{ii} contains 64 cells, then for each cell is contains 8x8x8 matrix (there are 8 matrix, each one matrix contains 8×8 elements). What i want is to extract the whole matrix from the cell_image{ii}, so it would become a 64×8 = 512 matrix (each one matrix contains 8×8 elements). But the code above is resulting all matrix element become zero. What's wrong with that code?
Please help me… Thanks in advance.
Best Answer