How to copy rows of a matrix to convert it into single row??
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Maruti Patil
el 6 de Abr. de 2016
Respondida: Star Strider
el 6 de Abr. de 2016
Suppose I have got A=[1 2; 3 4; 5 6; 7 8]
Now I want output as B=[1 2 3 4 5 6 7 8]
How to do this?
Thanx
0 comentarios
Respuesta aceptada
Star Strider
el 6 de Abr. de 2016
Use the reshape function:
A=[1 2; 3 4; 5 6; 7 8];
B = reshape(A', 1, [])
B =
1 2 3 4 5 6 7 8
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Numeric Types 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!