Creating vector from a cloumn of a matrix

2 views (last 30 days)
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

Accepted Answer

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

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by