Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
Joydeb Saha
Joydeb Saha le 29 Oct 2021
Réponse apportée : KSSV le 29 Oct 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

Réponses (1)

KSSV
KSSV le 29 Oct 2021
A = rand(11,3);
A = A' ;
A(:)'

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by