Đặng Thị Thúy Hằng
New member
Which code can be used for changing the dimensions of a matrix as follows?
Input matrix: 1 2 3 Output matrix: 1 4 2 5 3 6
4 5 6
A. reshape([1,2,3;4,5,6],1,6)
B. reshape([1,2,3;4,5,6];1;6)
C. reshape([1,2,3;4,5,6]:1:6)
D. reshape([1,2,3;4,5,6],6,1)
Input matrix: 1 2 3 Output matrix: 1 4 2 5 3 6
4 5 6
A. reshape([1,2,3;4,5,6],1,6)
B. reshape([1,2,3;4,5,6];1;6)
C. reshape([1,2,3;4,5,6]:1:6)
D. reshape([1,2,3;4,5,6],6,1)