Reshape MATLAB vector in Row-wise manner

后端 未结 3 379
遇见更好的自我
遇见更好的自我 2021-02-05 11:17

Say I have a matrix a = [1 2 3 4 5 6];, how do I reshape it in a row-wise manner for example reshape(a, 2, 3) to yield

1 2 3 
4 5 6
         


        
3条回答
提交回复
热议问题