Suppose I have a 2 by 60 matrix, like A = [1:60,2:61] how can I reshape it by the first 10 rows so that I can get a 20 by 6 matrix??
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Uzochukwu Akabueze
el 12 de Oct. de 2021
Comentada: Uzochukwu Akabueze
el 13 de Oct. de 2021
B = reshape(A,rowSize(A)/6,[],6)
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Coder 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!