How do you reshape an array to preserve the order in each row of the original array?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
L'O.G.
el 27 de Mzo. de 2023
Respondida: Bruno Luong
el 27 de Mzo. de 2023
How do you reshape an array into a 1-dim column such that the first row of the original array is the first set of numbers in the column, followed by the numbers in the second row, and so on?
For example A = magic(3) should become:
B = [
8
1
6
3
5
7
4
9
2];
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrix Indexing 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!