How to reshape array items and put them in a single cell
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I have 360x1280 numeric array and I want to reshape each of 360 items to 10x128 and store the image array as a cell row using for loop?
0 comentarios
Respuestas (2)
KSSV
el 3 de Oct. de 2018
I = rand(360,1280) ;
iwant = cell(1280,1) ;
for i = 1:1280
iwant{i} = reshape(I(:,i),10,128)) ;
end
0 comentarios
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!