Transform a vector by keeping the numbers by pairs
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sabato De Gregorio
el 18 de Mayo de 2018
Comentada: Sabato De Gregorio
el 18 de Mayo de 2018
Let's say I have a vector that contains some coordinates (x,y) in this way:
A=[1 2 3 4 5 6 7 8 9 10]
And I want to transform it in this matrix:
A = [1 2
3 4
5 6
7 8
9 10]
How can I do it? 'reshape' command is not what I'm searching. Thanks for the help.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!