Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
getting it in a matrix?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Say I have 1000 values in a single column, how can I transform them into matrix in which I get first 20 values in first row and next 20 in the next row and so on in 1 column. Like basically 1 column and 50 rows?
0 comentarios
Respuestas (2)
Azzi Abdelmalek
el 4 de Mayo de 2016
Editada: Azzi Abdelmalek
el 4 de Mayo de 2016
reshape(A,20,[])'
1 comentario
CS Researcher
el 5 de Mayo de 2016
Let x be the column vector. Try this:
modifiedX = reshape(x,numel(x)/20,20)';
0 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!