Reshape a vector to a matrix
64 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nicolas Guerrero Naranjo
el 18 de Ag. de 2021
Comentada: darova
el 21 de Ag. de 2021
Hello, I have the following doubt imagining that I have the vector
x=[1 2 3 4 5 6 7 8 9 10]
how can I do to reorganize it as follows
A=[1 2 3 4 5
6 7 8 9 10]
Since as we know reshape organizes as follows.
A=[1 3 5 7 9
2 4 6 8 10]
Thank u so much in advance.
1 comentario
Star Strider
el 18 de Ag. de 2021
This seems to be homework.
In any event, just use the reshape function.
.
Respuesta aceptada
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!