Borrar filtros
Borrar filtros

matrix arrangement problem for loop

1 visualización (últimos 30 días)
tsai kai shung
tsai kai shung el 30 de Oct. de 2017
Comentada: tsai kai shung el 30 de Oct. de 2017
hey guide i want arrangement the matrix like: a = [1 2 3 4 5 6 7 8.........unknown number] but matrix is A multiple of four
how to use for loop to become
a = [1 2 3 4; 5 6 7 8; 9 ....; .....unknown number];

Respuesta aceptada

Roger Stafford
Roger Stafford el 30 de Oct. de 2017
a = reshape(a,4,[]).';

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!