Reshaping the first row of a matrix as the first elements a column

2 次查看(过去 30 天)
I have a 11x3 matrix. How can I make the elements in the first row as the first three elements of the column and so on? the last matrix will be 1x33

回答(1 个)

KSSV
KSSV 2021-10-29
A = rand(11,3);
A = A' ;
A(:)'

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by