From where do I insert the transpose operator for matrix operation ?
조회 수: 2 (최근 30일)
이전 댓글 표시
To convert a row matrix into a coloumn matrix I need to perform x = x(transpose). But how to insert the TRANSPOSE operator ?
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 3월 22일
편집: Ameer Hamza
2020년 3월 22일
In MATLAB, transpose is indicated by apostrophe symbol ('). See: https://www.mathworks.com/help/matlab/ref/transpose.html
x = x';
추가 답변 (1개)
Sriram Tadavarty
2020년 3월 22일
Hi Shubham,
You can directly use (') operator
% For example
x = rand(3,5);
xTranspose = x'; % size will be 5 x 3
% OR through transpose function
xTrans = transpose(x);
Hope this helps.
Regards,
Sriram
참고 항목
카테고리
Help Center 및 File Exchange에서 String에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!