Creating vector from a cloumn of a matrix

1 view (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)

Community Treasure Hunt

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

Start Hunting!