Borrar filtros
Borrar filtros

arrange an array(1xn) to (rxc)

1 visualización (últimos 30 días)
Ugur Sahin
Ugur Sahin el 7 de Abr. de 2020
Comentada: Ugur Sahin el 7 de Abr. de 2020
Hi guys,
I have a program this program sums 4 value and this program add sums of 4 value to a new set
This set exist 81 colons
My quastion is how can ı separete to create a matrice every 9 step so there are 9colons and 9rows in new matrice
Thanks.
  2 comentarios
James Tursa
James Tursa el 7 de Abr. de 2020
Please provide a short example with smaller sizes so we know exactly what it is you are asking.
Ugur Sahin
Ugur Sahin el 7 de Abr. de 2020
m=1x81 to A=9x9

Iniciar sesión para comentar.

Respuesta aceptada

James Tursa
James Tursa el 7 de Abr. de 2020
Editada: James Tursa el 7 de Abr. de 2020
Not sure how you want the output ordered. Maybe this
A = reshape(m,9,9);
or this
A = reshape(m,9,9).';

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by