Creating vector from a cloumn of a matrix

1 Ansicht (letzte 30 Tage)
Berkay
Berkay am 29 Aug. 2022
Beantwortet: Voss am 29 Aug. 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

Akzeptierte Antwort

Voss
Voss am 29 Aug. 2022
Transpose the column:
RowMatrix = Matrix(:,1).'

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing 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