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

조회 수: 10 (최근 30일)
Joydeb Saha
Joydeb Saha 2021년 10월 29일
답변: KSSV 2021년 10월 29일
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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by