필터 지우기
필터 지우기

How to properly transpose a matrix

조회 수: 5 (최근 30일)
Brandon Bush
Brandon Bush 2018년 7월 6일
편집: Stephen23 2018년 7월 6일
I have a 1x31 vector array that I would like to transpose into a 31x1 vector. I set:
Array = Array';
However, every time I run the program, it switches between a row vector and a column vector. How can I get it to stay a column vector?

채택된 답변

Stephen23
Stephen23 2018년 7월 6일
편집: Stephen23 2018년 7월 6일
Regardless of the input size, this will give a column vector:
Array = Array(:)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by