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

3 Ansichten (letzte 30 Tage)
Joydeb Saha
Joydeb Saha am 29 Okt. 2021
Beantwortet: KSSV am 29 Okt. 2021
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

Antworten (1)

KSSV
KSSV am 29 Okt. 2021
A = rand(11,3);
A = A' ;
A(:)'

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by