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

3 ビュー (過去 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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by