Reshape row vector with given number of column
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Dinh Le Dung
el 30 de Abr. de 2022
Comentada: Dinh Le Dung
el 1 de Mayo de 2022
I try to turn a row vector into a new vector with a given number of column:
Ex: A = [1,2,3,4,5,6] , col = 3
Output would be
B = [1,2,3;4,5,6]
I try to use "reshape" but the output is [1,3,5;2,4,6] as not what i want
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices 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!