Creating vector from a cloumn of a matrix

1 vue (au cours des 30 derniers jours)
Berkay
Berkay le 29 Août 2022
Réponse apportée : Voss le 29 Août 2022
I want to create a row vector from the first column of the matrix
I try;
RowMatrix = Matrix(:,1)
but it gives a column vector

Réponse acceptée

Voss
Voss le 29 Août 2022
Transpose the column:
RowMatrix = Matrix(:,1).'

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing 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